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.
精彩评论