开发者

how to remove back command from LWUIT

开发者 https://www.devze.com 2023-03-27 23:46 出处:网络
I am trying to make an application using LWUIT Now i got a problem with back command from resource editor there are a back command in all forms and i cant find them in generated code

I am trying to make an application using LWUIT Now i got a problem with back command from resource editor there are a back command in all forms and i cant find them in generated code

Can anyone please provide me reference开发者_JAVA技巧 or sample code for removing the Back command.


Just invoke setBackCommandEnabled(false) in the state machine to disable the automatic back command navigation logic.


If you want to remove back command only in some forms, you can do this in form where you want to remove:

Command backCommand = form.getBackCommand();
form.removeCommand(backCommand);
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号