Remove subsection and from navigation drawer submenu
<p>I want to remove the unwanted space created in submenu. </p>

<p>Is there any possibility I can achieve it from <code>menu.xml</code> class? </p>

<p>Here is my <code>navigation_drawer_menu.xml</code></p>

<pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/android"&gt;


&lt;group android:checkableBehavior="single"&gt;
    &lt;item
        android:id="@+id/all"
        android:checked="true"
        android:icon="@drawable/ic_channels"
        android:title="All Channels" /&gt;
    .......
    &lt;item
        android:id="@+id/other"
        android:icon="@drawable/ic_other"
        android:title="Others" /&gt;

&lt;/group&gt;

&lt;item android:title=""&gt;
    &lt;menu&gt;
        &lt;item
            android:id="@+id/setting"
            android:icon="@drawable/ic_action_settings"
            android:title="Settings" /&gt;
        &lt;item
            android:id="@+id/about"
            android:icon="@drawable/ic_about"
            android:title="About" /&gt;
        &lt;item
            android:id="@+id/share"
            android:icon="@drawable/ic_share"
            android:title="Share" /&gt;
    &lt;/menu&gt;
&lt;/item&gt;
</code></pre>

<p></p>

<p><a href="https://i.stack.imgur.com/aZLBm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aZLBm.png" alt="Navigation drawer android"></a></p>

<p>Thanks.</p>