Android NavigationView suggest change

Add menu Divider using default DividerItemDecoration.

Just use default DividerItemDecoration class :

NavigationView navigationView = (NavigationView) findViewById(R.id.navigation);
NavigationMenuView navMenuView = (NavigationMenuView) navigationView.getChildAt(0);
navMenuView.addItemDecoration(new DividerItemDecoration(context,DividerItemDecoration.VERTICAL));

Preview :

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents