开发者

Don't want to show the option menu in all pages

I don't want to show the option menu in all pages when the menu button click. I want to specify the page to display option me开发者_开发技巧nu. How can I do that?


you can override the below method to disable/enable menu options as per your need...

@Override
    public boolean onPrepareOptionsMenu(Menu menu) {
        // TODO Auto-generated method stub
        return super.onPrepareOptionsMenu(menu);
    } 
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜