开发者

menu button Problem in tablet?

i create android application. it is compatible for android phones and tablet. but i problem occur in some tablet, in tablet no physical menu button. in my app all menu functionality added in device menu button. how t开发者_运维知识库o handle Menu Button event in Tablet? if yes how?.

please help me.?


Then you can open menu using onClickListeners.

For Example, if you have a imageview in that page, then you can open menu for image click event

    image.setOnClickListener(new OnClickListener() {

        public void onClick(View v) {
        openOptionsMenu();
        }
    });


If I'm not mistaken tablets draw the menu button to the right of "back", "home" and "apps" buttons.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜