LWUIT 中的命令
如何在 lwuit 表单的页脚处单行添加 2 个以上命令,假设我想在单行中添加返回、选择和退出命令,我该怎么做?帮忙举个例子。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
使用
Display.getInstance().setThirdSoftButton(true);
显示三个软按钮。Use
Display.getInstance().setThirdSoftButton(true);
for showing three softbutton's.您还可以编写
your_Form.setDefaultCommand(the_command_in_the_middle);
You can also write
your_Form.setDefaultCommand(the_command_in_the_middle);
我注意到在资源编辑器中将 commandBehaviour 设置为 SoftKey 会使所有命令在一侧对齐,典型的黑莓行为,也适用于诺基亚。它是资源编辑器中主题常量之一的属性。
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.