android - Show and Hide action bar buttons outside onPrepareOptionsMenu -
in overrided public boolean onprepareoptionsmenu(menu menu)
can hide or show menu buttons adding true or false in way
menu.finditem(r.id.my_action_button).setvisible(true);
but need same operation when different method inside activity called,
how this?
call:
activity.invalidateoptionsmenu();
Comments
Post a Comment