Open main menu

CDOT Wiki β

Changes

Lab BlackBerry Example

553 bytes added, 12:34, 27 February 2011
no edit summary
add(_buttonGoBack);
</source>
 
If you want to add some specific color to the second screen you may use ''net.rim.device.api.ui.container.VerticalFieldManager''. The vertical field manager lays out fields top to bottom in a single column. One can use the manager object to set the background of an element.
 
Let us suppose that you want the second screen to have the coral color. Therefore, you should use the code like this one:
 
VerticalFieldManager manager = (VerticalFieldManager) getMainManager();
manager.setBackground(BackgroundFactory.createSolidBackground(Color.CORAL));