Trying to change the icon size of the default navigation drawer and also to add a divider after each item but I don't understand how to do this? This is the menu drawer view:
<group android:checkableBehavior="single">
<item
android:id="@+id/agenda"
android:icon="@drawable/agenda"
android:title="AGENDA"
/>
<item
android:id="@+id/speakers"
android:icon="@drawable/speakers"
android:title="SPEAKERS" />
<item
android:id="@+id/schedule"
android:icon="@drawable/schedule"
android:title="SCHEDULE" />
<item
android:id="@+id/organiser"
android:icon="@drawable/organiser"
android:title="ORGANISER" />
<item
android:id="@+id/partners"
android:icon="@drawable/partner"
android:title="PARTNERS" />
<item
android:id="@+id/event_info"
android:icon="@drawable/eventinfo"
android:title="EVENT-INFO" />
</group>
this is dimens.xml
<resources>
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="activity_horizontal_margin">16dp</dimen>
<dimen name="activity_vertical_margin">16dp</dimen>
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="nav_header_vertical_spacing">16dp</dimen>
<dimen name="nav_header_height">160dp</dimen>
</resources>
Setting design_navigation_icon_size and design_navigation_icon_padding in dimens.xml worked for me.
/values/dimens.xml
<dimen name="design_navigation_icon_size" tools:override="true">10dp</dimen>
<dimen name="design_navigation_icon_padding" tools:override="true">10dp</dimen>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With