3

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 ?

4

1 Answer 1

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.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.