Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

remove line divider from NavigationView android

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>

enter image description here

how can remove the line divider from menu?

like image 428
javadroid Avatar asked Dec 03 '22 15:12

javadroid


1 Answers

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?

like image 142
ʍѳђઽ૯ท Avatar answered Dec 05 '22 03:12

ʍѳђઽ૯ท