Skip to content
Advertisement

the menu is not displayed in the xml file already tried everything, nothing works

The main problem is that the menu bar is not displayed in my layout file. I’ve done a few searches but haven’t been able to find a solution or a reason as to why it is behaving this way. Any help would be appreciated. Thanks. my menu file

JavaScript

XML my layout file

JavaScript

Where am I doing wrong? I checked some tutorials, and that exactly the process of setting bottom navigation view photo

Advertisement

Answer

If you do not use the rules of material design, you should not have a theme that inherits from material design. Find the theme.xml according to the Android version of your studio and change the parent to Theme.AppCompat.Light.DarkActionBar.

enter image description here

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement