开发者

Remove default items from custom context menu on BlackBerry

开发者_如何学运维I want to create my own context menu.

When a user clicks the BlackBerry menu button, the menu should open with only my menu items -- and not the 'Hide keyboard' and 'Switch Application' items that are included by default.


protected void makeMenu(Menu menu, int instance) {
menu.deleteAll();

// add your code here
}

Try this out

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜