I have a Navigation Drawer menu with
nav_view.inflateMenu(R.menu.main_drawer)
Then I would like to put another submenu in between with
nav_view.inflateMenu(R.menu.main_drawer)
nav_view.inflateMenu(R.menu.sub_drawer)
then looks like following
As you can see the special submenu is appende after quit. I owuld like to put it before Quit. Quit should be the last menu item.. as here
I seperated the menu.xml because I want to insert the second R.menu.sub_drawer
from library level.. dynamic programatically..
How?