Skip to navigation
Add dynamically menu items to the default android drawer template
30.05.17
in the "protected void onCreate(Bundle savedInstanceState) {}" functions get the drawer navigation menu and add items example: NavigationView nav = (NavigationView) findViewById(R.id.nav_view); Menu menu = nav.getMenu(); menu.add(0,1,1,"foo"); nav.setNavigationItemSelectedListener(this);
http://www.technotalkative.com/part-4-playing-with-navigationview/
Reply
Anonymous
Information Epoch 1753447829
Save trees.
Home
Notebook
Contact us