How to separate menu drawer items

  • Replies:0
  • OpenNot stickiedUnanswered
  • Forum posts: 5

Oct 8, 2017 12:47:02 AM via Website

Hi guys!

How do I do to separate menu items with a line?

<?xml version="1.0" encoding="utf-8"?>

xmlns:app=""
xmlns:tools=""
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:openDrawer="start">

<include
    layout="@layout/app_bar_main"
    android:layout_width="match_parent"
    android:layout_height="match_parent" />

<android.support.design.widget.NavigationView
    android:id="@+id/nav_view"
    android:layout_width="wrap_content"
    android:layout_height="match_parent"
    android:layout_gravity="start"
    android:fitsSystemWindows="true"
   app:menu="@menu/activity_main_drawer" />

<?xml version="1.0" encoding="utf-8"?>

<group android:id="@+id/grp2" android:checkableBehavior="single" >
    <item
        android:id="@+id/nav_inicio"
        android:title="Início" />

    <item
        android:id="@+id/nav_escrituras"
        android:title="Tudo" />
    <item
        android:id="@+id/nav_artigos"
        android:title="Artigos" />
    <item
        android:id="@+id/nav_links"
        android:title="Links" />
    <item
        android:id="@+id/nav_contato"
        android:title="Contato" />
    <item
        android:id="@+id/nav_sobre"
        android:title="Sobre" />
</group>

<?xml version="1.0" encoding="utf-8"?>

xmlns:app=""
xmlns:tools=""
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:openDrawer="start">

<include
    layout="@layout/app_bar_main"
    android:layout_width="match_parent"
    android:layout_height="match_parent" />

<android.support.design.widget.NavigationView
    android:id="@+id/nav_view"
    android:layout_width="wrap_content"
    android:layout_height="match_parent"
    android:layout_gravity="start"
    android:fitsSystemWindows="true"
   app:menu="@menu/activity_main_drawer" />

Thanks