I am having a problem with EditField
.
I have created an EditField
using this code under a "HorizontalFieldManager".
EditField nameEditLabel = new EditField (EditField.FOCUSABLE
| EditField.NO_NEWLINE | EditField.FIELD_RIGHT);
nameEditLabel.setMaxSize(25);
nameEditLabel.setMargin(50, 0, 0, 80);
horizontalFldManager.add(nameEditLabel);
Problem now is, On the screen, it doesn't show the line of the field. Something like, basically a Field contain "Name: ----------------------" such line in other platform controls, which is not showing here on the screen. What is the problem here? Is it default in API support? If no, how do i resolve it?
Note: This line is getting created only when i write something on the field.
Thanks.
If you want to have this "----" in case EditField is empty, extend it to implement check value logic:
Example of use: