Reduce space between menu groups inside navigation drawer

最后都变了- 提交于 2019-11-26 17:06:08

问题


I want to reduce the space between each menu group in the Navigation drawer (In the following image, space between the two lines).

I've created a custom style and tried the following attributes

<item name="android:paddingTop">0dp</item>
<item name="android:paddingBottom">0dp</item>

They only reduced the padding around the items text.

Even the following attributes didn't worked

<item name="android:layout_marginTop">0dp</item>
<item name="android:layout_marginBottom">0dp</item>

回答1:


I think you must override design_navigation_separator_vertical_padding dimens in your project dimes.xml

 <dimen name="design_navigation_separator_vertical_padding">0dp</dimen>


来源:https://stackoverflow.com/questions/38519293/reduce-space-between-menu-groups-inside-navigation-drawer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!