Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to control NavigationView margin between menu items

Tags:

android

I have a navigation drawer with many items so the user needs to scroll up and down in order to see all the items.

I would like to reduce the margins between individual menu items, so that all items fit within a standard screen with no need to scroll.

Is there a way to control the margins in between the menu items?

like image 633
Zvi Avatar asked Dec 02 '22 13:12

Zvi


1 Answers

Answer here helped me to reduce space at least between groups. I used the following dimen

<dimen tools:override="true" name="design_navigation_separator_vertical_padding">1dp</dimen>
like image 189
Lanitka Avatar answered Dec 26 '22 22:12

Lanitka