开发者

Horizontal BlackBerry menu

开发者 https://www.devze.com 2023-01-25 10:51 出处:网络
I have Android code for making a menu.Now I wan开发者_如何学运维t to do the same for BlackBerry.

I have Android code for making a menu. Now I wan开发者_如何学运维t to do the same for BlackBerry.

My Android code overrides Activity.onCreateOptionsMenu and uses a MenuInflater to create the menu items.


The corollary to Activity.onCreateOptionsMenu is Field.makeContextMenu().

There is no direct correlation for the MenuInflater object - you write all of the UI hierarchy directly in Java for BlackBerry apps. So in this case, your makeContextMenu() method will need to create some MenuItem objects, and add them to the returned ContextMenu object.

0

精彩评论

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