Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Posts: 69
Registered: ‎08-25-2008
My Device: Not Specified
Accepted Solution

How to add fields from bottom?

[ Edited ]



For displaying a set of bitmap fields in horizontal row and show this row at the bottom of the screen, I have used below code.  But iam unable to get this row at the bottom of the screen,  it is showing on top of the screen only.  Please correct my code.  Advanced Thanks.

MainScreen _mainScreen = new MainScreen();


BitmapField bmf1 = new BitmapField(bitmap_temp, BitmapField.FOCUSABLE);

BitmapField bmf2 = new BitmapField(bitmap_temp, BitmapField.FOCUSABLE);

BitmapField bmf3 = new BitmapField(bitmap_temp, BitmapField.FOCUSABLE); HorizontalFieldManager hfm = new HorizontalFieldManager(Manager.HORIZONTAL_SCROLLBAR | Manager.HORIZONTAL_SCROLL); hfm.add(bmf1); hfm.add(bmf2); hfm.add(bmf3); VerticalFieldManager vfm_temp = new VerticalFieldManager(Manager.USE_ALL_HEIGHT | Manager.FIELD_BOTTOM); vfm_temp.add(hfm); _mainScreen.add(vfm_temp);

Message Edited by sunil_garlapati on 11-11-2008 05:06 AM
Posts: 17,025
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to add fields from bottom?

you can use the status area of the mainscreen (setstatus) to display things on the lower part of the screen. implementing your own managers is more flexible but maybe also a bit more difficult
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Posts: 69
Registered: ‎08-25-2008
My Device: Not Specified

Re: How to add fields from bottom?

Thanks alot