I am new to android development and I trying to create a simple app with the material dark theme. When I select the Material Dark theme, the title bar shows up on the UI with the name of the app. Along with it, there are three vertical dots which, when clicked on, show a popup menu. I have tried all the themes available but I cannot remove that action menu. If i select NoActionBar, it removes the title as well as the actions menu. I want it to remove just the actions menu, but keep the Title bar. How is this possible ?
Asked
Active
Viewed 3,027 times
3
-
do you mean `overflow menu` ? – Sufiyan Ghori Dec 31 '14 at 16:19
-
whats the difference ? – user3889649 Dec 31 '14 at 16:31
-
possible duplicate of [How to disable/hide three-dot indicator(Option menu indicator) on ICS handsets](http://stackoverflow.com/questions/9206530/how-to-disable-hide-three-dot-indicatoroption-menu-indicator-on-ics-handsets) – Sufiyan Ghori Dec 31 '14 at 16:33
-
@sufiyan It's not a duplicate of that question - OP seems to be referring to the overflow menu in the Action Bar, not the additional menu button on software navigation devices. – ataulm Dec 31 '14 at 16:52
1 Answers
2
It will only show that popup menu if you have menu items in that activity.
In Android Studio, you can use the shortcut cmd-shift-o
(OSX) or ctrl-shift-n
(Win/Linux) to use the open project file tool. Search for "menu", then delete the file (it will be an XML file in res/menu
) if you don't need it.
In your Activity, search for references to the now-deleted menu, and remove them.

ataulm
- 15,195
- 7
- 50
- 92