Hi ChinLoong
That is working but not for all devices : it works for Nokia 205 (201) -- these are keypad-only devices and does not work for full-touch devices as Nokia 309. My code is as the following:
Code:
public void startApp() {
//init the LWUIT Display
Display.init(this);
Form f = new Form("Form Title");
f.setLayout(new BorderLayout());
f.addComponent(BorderLayout.CENTER, new Label("I am a Label"));
f.addCommand(new Command("Fake1", 1));
f.addCommand(new Command("Fake1", 2));
f.addCommand(new Command("Fake2", 3));
f.addCommand(new Command("Fake3", 4));
f.getTitleComponent().getStyle().setBgColor(0xba0303);
f.getMenuBar().getStyle().setBgColor(0xba0303);
f.show();
}
on keypad-only device i see colored title and menu bars.
As for Facebook app you refer to -- it is unlikelly such UI is made with LWUIT. On full-touch device there is no left button and right button softkeys but they are presented in Facebook. I guess that UI is made totally with graphics on Canvas --- please check example here how push-buttons are just drawn on canvas. class Button.
Regards,
Igor