Tuesday, November 27, 2012

LWUIT: Menghilangkan Title Bar Aplikasi Tapi Tetap Ada Status Bar

Jadi ceritanya pengen bikin aplikasi J2ME di Nokia S40 Asha. Terus nggak mau ada title barnya

awalnya gini..

terus pengen jadi gini.. (tinggal status bar nya aja)

biar bisa diginiin..

Kodenya gini:


Display.getInstance().setCommandBehavior(Display.COMMAND_BEHAVIOR_DEFAULT);
((Canvas)(javax.microedition.lcdui.Display.getDisplay(this).getCurrent())).setFullScreenMode(true);
com.nokia.mid.ui.LCDUIUtil.setObjectTrait((Canvas)(javax.microedition.lcdui.Display.getDisplay(this).getCurrent()),"nokia.ui.canvas.status_zone", Boolean.TRUE);


Alhamdulillah pisan lah ketemu ginian.

Hope you like it!

Thanks buat
http://www.java.net/forum/topic/embedded/lwuit/show-status-bar-and-custom-menu-bar-lwuit-j2me-project
http://projects.developer.nokia.com/LWUIT_for_Series_40/discussion/message/24
http://projects.developer.nokia.com/s40uivisualisation/wiki/Canvas

No comments:

Post a Comment

Comment is caring :)