I have 3 types of users Each user has different menu options in navigation drawer.that menu options are getting from the server.I have a single login screen for three users.according to the user login, the menu will be delivered from the server.I want to add that menu item to the navigation drawer.I got some code during the search.but what I want to know, how to design navigation drawer for accept dynamic menu items
NavigationView navView = (NavigationView)
findViewById(R.id.your_nav_view_id);
Menu m = navView.getMenu();
SubMenu menuGroup = m.addSubMenu("My menu group");
menuGroup .add("name");
menuGroup .add("address");