Set registration between menu items "Navigation"

Can I adjust the distance between menu items in the Android NavigationView Design Support Library?

My requirement is to create a submenu in the NavigationView in which the menu items have a shorter distance between them, and then the parent menu.

+5
source share
1 answer

Have you tried the app: itemTextAppearance? for example use this

 app:itemTextAppearance="@style/NavDrawerTextStyle"="@style/NavDrawerTextStyle" 

After you create, edit your style.xml and declare your style:

 <style name="NavDrawerTextStyle"> <item name="android:textSize">20dp</item> <item name="android:textAlignment">something</item> </style> 
0
source

Source: https://habr.com/ru/post/1234198/


All Articles