Blackberry - Custom size EditField
Posted
by Eric
on Stack Overflow
See other posts from Stack Overflow
or by Eric
Published on 2009-08-27T03:13:29Z
Indexed on
2010/03/19
19:31 UTC
Read the original article
Hit count: 289
blackberry
|gui
I am trying to put together a dialog that should look like this:
Fill in the below fields
___________ likes ________________
where the "_" lines are the EditFields.
I am sticking all the fields in a HorizontalFieldManager, which I add to the dialog. Unfortunately, the first EditField consumes all the space on the first line. I have tried to override the getPreferredWidth() method of the EditField by creating my own class extending BasicEditField, but have had no success.
Surely there must be a simple way to force a certain size for an edit field. What am I missing?
© Stack Overflow or respective owner