title: Add a ListView or RecyclerView to new NavigationView
body: <p>I am using the new <a href="https://developer.android.com/reference/android/support/design/widget/NavigationView.html">NavigationView</a> from revision 22.2.0 of the <a href="https://developer.android.com/tools/support-library/index.html">support library</a> by Google. It works perfectly fine to generate a navigation drawer populated using a menu res.</p>
  
  <p>I was wondering is it possible to add a ListView or RecyclerView to the navigation drawer so that it can be populated using my custom adapter code, which allows for far greater flexibility than menu resources.</p>
  
  <p>Here is my current XML:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;android.support.v4.widget.DrawerLayout
      android:id="@+id/drawer_layout"
      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:layout_width="match_parent"
      android:layout_height="match_parent"
      android:fitsSystemWindows="true"
      tools:context=".MainActivity"&gt;
  
      &lt;FrameLayout
          android:id="@+id/content_view"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical"&gt;
  
          &lt;include layout="@layout/main_toolbar" /&gt;
  
      &lt;/FrameLayout&gt;
  
      &lt;android.support.design.widget.NavigationView
          android:id="@+id/navigation_view"
          android:layout_width="wrap_content"
          android:layout_height="match_parent"
          android:layout_gravity="start"
          app:headerLayout="@layout/navigation_drawer_header"
          app:menu="@menu/menu_navigation_drawer" /&gt;
  
  
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>
  
  <p>Where in my XML would I add the ListView or RecyclerView?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>As per Basant's suggestion, I nested a ListView into the NavigationView. You lose the ability to inflate from a menu res (as far as I know) but it succeeds in what I want it to do. The header XML is unchanged, it is just included into XML.</p>
  
  <p>New code:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;android.support.v4.widget.DrawerLayout
      android:id="@+id/drawer_layout"
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:fitsSystemWindows="true"
      tools:context=".MainActivity"&gt;
  
      &lt;FrameLayout
          android:id="@+id/content_view"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical"&gt;
  
          &lt;include layout="@layout/main_toolbar" /&gt;
  
      &lt;/FrameLayout&gt;
  
      &lt;android.support.design.widget.NavigationView
          android:id="@+id/navigation_view"
          android:layout_width="wrap_content"
          android:layout_height="match_parent"
          android:layout_gravity="start"&gt;
  
          &lt;RelativeLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent"&gt;
  
              &lt;include
                  android:id="@+id/navigation_drawer_header_include"
                  layout="@layout/navigation_drawer_header" /&gt;
  
              &lt;ListView
                  android:id="@+id/navigation_drawer_list"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:layout_below="@id/navigation_drawer_header_include"/&gt;
  
          &lt;/RelativeLayout&gt;
  
      &lt;/android.support.design.widget.NavigationView&gt;
  
  
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>