I an trying to implement a screen like below:

For that, I am using following code. It is not working at all.
HorizontalFieldManager outerManager = new HorizontalFieldManager(FIELD_BOTTOM|USE_ALL_HEIGHT);
outerManager.setBackground(BackgroundFactory.createBitmapBackground(Bitmap.getBitmapResource("img/bghome.png")));
final FCLabelField selectedLabel = new FCLabelField("Hello World", LabelField.USE_ALL_WIDTH | DrawStyle.HCENTER);
selectedLabel.setFontColor(Color.BLACK);
selectedLabel.setBackground(BackgroundFactory.createSolidBackground(0x00cccccc));
outerManager.add(selectedLabel);
HorizontalFieldManager innerManager = new HorizontalFieldManager();
innerManager.setPadding(0, 10, 0, 10);
innerManager.add(new ButtonField( "Button 1", ButtonField.CONSUME_CLICK | ButtonField.FIELD_RIGHT ));
innerManager.add(new ButtonField( "Button 2", ButtonField.CONSUME_CLICK | ButtonField.FIELD_RIGHT ));
innerManager.add(new ButtonField( "Button 3", ButtonField.CONSUME_CLICK | ButtonField.FIELD_RIGHT ));
innerManager.add(tab4);
innerManager.add(tab5);
outerManager.add(innerManager);
innerManager.setBackground(BackgroundFactory.createSolidBackground(0x00cccccc));
add(outerManager);
What is the problem in my code? How I can set a screen like above?
There are several ways to achieve what you asked. One way is to use the
setStatus()method as BBdev suggested (it will work only for screens of typeMainScreenand won't work for screens of typeFullScreen). Another alternative would be to do the alignment to bottom manually.Important alignment rules to remember:
A HorizontalFieldManager can only align fields vertically. When adding fields to horizontal manager, only these alignment styles have effect: FIELD_TOP, FIELD_VCENTER, FIELD_BOTTOM.
A VerticalFieldManager can only align fields horizontally. When adding fields to vertical field manager, only these alignment styles have effect: FIELD_LEFT, FIELD_HCENTER, FIELD_RIGHT.
Here is a code snippet that does what you asked.