Felipe
Felipe

Reputation: 537

Codename One - Crash due to TextFields

I had my app working just fine a few days ago and then I noticed the first problem. I had to tap twice in order to make a button go to the next screen. Also happened to the checkBoxes. Had to tap twice to make them change.

But now it got serious. Since yesterday when I tap on a TextField the app freezes and then crashes. The only significant changes I remember I did were 2: I uploaded an image for the App Icon and I edited the TitleArea UIID. I removed the TOP and BOTTOM margins. It also affected some of my label and button UIID, because now they don't show on the device

When I run the simulator, the doble tap also occurs, but the TextFields work fine and the Button and Label UIID look the way they should.

Any ideas why this happens?

I am right now working with old versions to try to determine the reason, but no luck so far. Thanks

Upvotes: 2

Views: 76

Answers (1)

Shai Almog
Shai Almog

Reputation: 52760

Use a solid color rather than a gradient with the same colors. Gradients are slow and problematic across platforms so you are paying a lot for something that you aren't even using.

We'll need a better test case to reproduce crashing, I think that what you initially saw when you submitted the issue was a regression in the text input that we since resolved in the build servers.

Upvotes: 1

Related Questions