i have this menu for the NavigationView of layout:
<item android:title="title1">
<menu>
<item
android:id="@+id/nav_tab1"
android:icon="@drawable/ic_action_nav_tab1"
android:title="test1" />
<item
android:id="@+id/nav_tab2"
android:icon="@drawable/ic_action_nav_tab2"
android:title="test2" />
</menu>
</item>
<item android:title="title2">
<menu>
<item
android:id="@+id/nav_settings"
android:icon="@drawable/ic_action_settings"
android:title="test3" />
</menu>
</item>
how can remove the line divider from menu?
Add this to your Styles
:
<item name="android:listDivider">@android:color/transparent</item>
Here you can read more about it: How can I change separator color in NavigationView?
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