Phil Santos
- Forum posts: 7
Oct 8, 2017, 12:47:02 AM via Website
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
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.