title: Custom layout with menu in NavigationView?
body: <p>I need to create a navigation drawer such that, the first menu contains 5 pre-defined items (these will never change). Below that first menu, I want to have a second menu that contains a variable amount of items with a custom layout.</p>
  
  <p>Explained in an image:</p>
  
  <p><a href="https://i.stack.imgur.com/KgQTw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KgQTw.png" alt="enter image description here"></a></p>
  
  <p>Here is what my main activity looks like right now:</p>
  
  <pre><code>&lt;android.support.v4.widget.DrawerLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:id="@+id/drawer_layout"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:fitsSystemWindows="true"
      tools:openDrawer="start"&gt;
  
      &lt;android.support.design.widget.CoordinatorLayout
          android:id="@+id/main_content"
          android:layout_width="match_parent"
          android:layout_height="match_parent"&gt;
  
          &lt;android.support.design.widget.AppBarLayout
              android:id="@+id/appbar"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"&gt;
  
              &lt;android.support.v7.widget.Toolbar
                  android:id="@+id/toolbar"
                  android:layout_width="match_parent"
                  android:layout_height="?attr/actionBarSize"
                  app:layout_scrollFlags="scroll|enterAlways"
                  app:popupTheme="@style/AppTheme.PopupOverlay" /&gt;
  
              &lt;android.support.design.widget.TabLayout
                  android:id="@+id/tablayout"
                  android:layout_width="match_parent"
                  android:layout_height="48dp" /&gt;
  
          &lt;/android.support.design.widget.AppBarLayout&gt;
  
          &lt;android.support.v4.view.ViewPager
              android:id="@+id/container"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              app:layout_behavior="@string/appbar_scrolling_view_behavior" /&gt;
  
      &lt;/android.support.design.widget.CoordinatorLayout&gt;
  
      &lt;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"&gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:orientation="vertical"&gt;
  
              &lt;include
                  layout="@layout/nav_header_drawer" /&gt;
  
              &lt;ListView
                  android:id="@+id/drawer_listview"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:layout_gravity="left"
                  android:choiceMode="singleChoice" /&gt;
  
          &lt;/LinearLayout&gt;
  
      &lt;/android.support.design.widget.NavigationView&gt;
  
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>
  
  <p>Which works, except now I can't use the <code>app:menu="@menu/navigation_drawer_items"</code> property for <code>NavigationView</code> because the <code>ListView</code> items overlap the menu items.</p>
  
  <p>Here is the menu XML:</p>
  
  <pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/android"&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>Is there a way that I can load the menu XML <strong>AND</strong> show a custom layout below the menu? Is there a different want to do this?</p>