I’m facing a problem. I can’t make a toolbar to show me a menu. I know that this question was asked here previously here, and I went through all possible solutions, but none of them gave me desired result. So I’m using 1 activity and few fragments and I want to show different menu items in a toolbar according to
Tag: android-actionbar
Android Activity without ActionBar
I have different Activities in my App and in all of them I do not want the Action Bar. I cannot find how to disable it. I have tried to find an attribute to apply it to the main_activity.xml but so far I did not find anything. Can somebody help me please? Answer Haha, I have been stuck at that
How can I change option menu in different fragments?
I have a Fragment with menu: I would like to change menu but it doesn’t work and keep the old action menu Fragment B is equals like above with different inflate XML menu. EDITED: Can be useful to use different menu layout for different fragments and 1 menu layout for main activity and differents id Answer Put setHasOptionsMenu(true) in constructor