Command in LWUIT

本秂侑毒 提交于 2019-12-24 10:03:10

问题


How to add more than 2 command in a single row in at the Footer in lwuit Form ,suppose I want to add Back,Select,and Exit Command in a single row,how can I do that? Help with some example.


回答1:


Use Display.getInstance().setThirdSoftButton(true); for showing three softbutton's.




回答2:


You can also write your_Form.setDefaultCommand(the_command_in_the_middle);




回答3:


I noticed that setting commandBehaviour to SoftKey in the resource editor makes all your commands align on one side, typical blackberry behaviour, works on nokia also. It is a property of one of the constants of the theme in the resource editor.



来源:https://stackoverflow.com/questions/7413429/command-in-lwuit

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!