I am trying to implement an action bar within an activity.
Is it possible to “refresh” or re-inflate the action bar with a new menu(without restarting the activity)
The only way I have found so far is to leave the action bar empty and assign it a new customView every time I want it changed.
I am trying to implement an action bar within an activity. Is it possible
Share
Try calling
invalidateOptionsMenu()on your activity. Quoting the documentation: