开发者

Remove default items from custom context menu on BlackBerry

开发者 https://www.devze.com 2023-01-20 23:35 出处:网络
开发者_如何学运维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 Applic

开发者_如何学运维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

精彩评论

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