开发者

menu button Problem in tablet?

开发者 https://www.devze.com 2023-04-01 07:46 出处:网络
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 me

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

精彩评论

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