Reputation: 1143
I have used text field with hint "Phone Number". When I click on the text field the text "Phone Number" font will be increased automatically. I'm wondering is there any way I can control the size of the font when =text field control is in focus or selected. Please advise.
Code:
TextField num = new TextField("", "Phone Number", 10, TextField.PHONENUMBER);
Thanks
Upvotes: 2
Views: 91
Reputation: 52760
You need to style both the selected and unselected versions of the UIID in a consistent way. You can do that in the Codename One designer tool by editing the style you overrode and making sure both Selected
and Unselected
tabs have the same value for the font.
Upvotes: 2