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);
}
精彩评论