Why says: Invalid start tag menu? RRS feed

  • Question

  • User340564 posted

    <?xml version="1.0" encoding="utf-8" ?> <menu xmlns:android="http://schemas.android.com/apk/res/android"> //In this Line is the error "Invalid start tag menu" <group android:checkableBehavior="single"> <item android:id="@+id/nav_home" android:icon="@drawable/ic_dashboard" android:title="Home" /> <item android:id="@+id/nav_messages" android:icon="@drawable/ic_event" android:title="Messages" /> <item android:id="@+id/nav_friends" android:icon="@drawable/ic_headset" android:title="Friends" /> <item android:id="@+id/nav_discussion" android:icon="@drawable/ic_forum" android:title="Discussion" /> </group> <item android:title="Sub items"> <menu> <item android:icon="@drawable/ic_dashboard" android:title="Sub item 1" /> <item android:icon="@drawable/ic_forum" android:title="Sub item 2" /> <item android:icon="@drawable/ic_done" android:title="Sub item 5" /> </menu> </item> </menu>

    Wednesday, August 16, 2017 3:48 PM

All replies

  • User348873 posted

    Hey.. Did you get any answer for this?

    Thursday, October 5, 2017 3:26 PM
  • User306383 posted


    A menu xml definition file MUST BE in a "menu" subfolder of your "Resources" folder !

    Happy coding !

    Thursday, December 14, 2017 12:53 PM