BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/index.php)
-   Developer Forum (http://www.blackberryforums.com/forumdisplay.php?f=15)
-   -   Layout Manager Help (http://www.blackberryforums.com/showthread.php?t=146614)

JoelParker 08-23-2008 05:24 PM

Layout Manager Help
 
My application is derived from the MainScreen so I am using the vertical layout manager as the default manager which is fine except I want a row of buttons at the bottom of the screen. How can I do this? (ie. Add label field, seperator field, list field, etc. (all vertical) but then a row of buttons at the bottom of the screen).

RemyJ 08-23-2008 10:06 PM

Add a HorizontalFieldManager to the default VerticalFieldManager, then add your buttons to the HFM.

JoelParker 08-24-2008 08:50 AM

Thanks, is there a way to have it always aligned with the bottom of the screen, instead of just stacked under my other fields?

hrbuckley 08-24-2008 10:01 AM

Instead of adding the HorizontalFieldManager to the MainScreen use MainScreen.setStatus(Field hrm).

JoelParker 08-24-2008 02:23 PM

Great, Is there a way to space the buttons evenly across the whole bottom?

hrbuckley 08-25-2008 10:08 AM

You could either over ride the paint method of the buttons to make them the same size, or the paint method of the manager to space them evenly.

CELITE 08-25-2008 02:33 PM

Alternatively, you can precalculate the space you need and use setPadding on the button field.


All times are GMT -5. The time now is 09:22 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.