How to add a collapsible menu item inside navigation drawer in android?
问题 I have a DrawerLayout enclosing a NavigationView and this layout activity serves as a common Navigation drawer for all the activities in my app. I am providing the menu resource for app:menu in navigation view. I have some menu items, but I want one menu item to be collapsible/expandable, so that when I click on it, it expands to show two submenus and collapses again on a second click. I have added submenus by adding another <menu> inside the <item> but cant make it collapsible/expandable.