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

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -