Navigation Drawer: Add Titles to Groups, Not Items
<p>I have a standard Navigation Drawer, pre-created by Android Studio and want to populate it with number of groups. I started with this:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;menu xmlns:android="http://schemas.android.com/apk/res/android"&gt;

    &lt;group android:checkableBehavior="single"&gt;
        &lt;item
            android:id="@+id/nav_mode_person"
            android:icon="@drawable/ic_person_black_24dp"
            android:title="Person" /&gt;
        &lt;item
            android:id="@+id/nav_mode_group"
            android:icon="@drawable/ic_group_black_24dp"
            android:title="Community" /&gt;
    &lt;/group&gt;

    &lt;item android:title="Communicate"&gt;
        &lt;menu&gt;
            &lt;item
                android:id="@+id/nav_share"
                android:icon="@drawable/ic_menu_share"
                android:title="Share" /&gt;
            &lt;item
                android:id="@+id/nav_send"
                android:icon="@drawable/ic_menu_send"
                android:title="Send" /&gt;
        &lt;/menu&gt;
    &lt;/item&gt;

&lt;/menu&gt;
</code></pre>

<p>But what I didn't get is if it even possible to give each group a title? I mean there is an <code>android:title</code> option available for <code>&lt;item&gt;</code>s, but it is unavailable for <code>&lt;group&gt;</code>s and if I try to wrap groups around items, what I get is a messy entries behavior.</p>

<p>I read through Google's design guideline on Navigation Drawer, but missed the point if groups should have its own names or they should not. Here is a picture of what I want to achieve:</p>

<p><a href="https://i.imgur.com/1E8jb0D.png" rel="noreferrer"><img src="https://i.imgur.com/1E8jb0D.png" alt="enter image description here"></a></p>

<p>Is it possible without adding random <code>&lt;TextView&gt;</code>s? By the way, I want to do it via XML, not programmatically.</p>