title: Android Nav Drawer and Toolbar (api 21)
body: <p>i have problems with my navigation drawer (i use api 21).</p>
  
  <p>my layout : </p>
  
  <pre><code>&lt;android.support.v4.widget.DrawerLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/drawer_layout"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;!-- Framelayout to display Fragments --&gt;
      &lt;FrameLayout
          android:id="@+id/frame_container"
          android:layout_width="match_parent"
          android:layout_height="match_parent" /&gt;
  
          &lt;LinearLayout
              android:id="@+id/drawer_linear"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:orientation="vertical" &gt;
  
              &lt;!-- Toolbar --&gt;
              &lt;android.support.v7.widget.Toolbar
                  xmlns:android="http://schemas.android.com/apk/res/android"
                  xmlns:app="http://schemas.android.com/apk/res-auto"
                  android:id="@+id/toolbar"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:background="#0000FF" /&gt;
  
  
              &lt;!-- Listview to display slider menu --&gt;
              &lt;ListView
                  android:id="@+id/list_slidermenu"
                  android:layout_width="240dp"
                  android:layout_height="match_parent"
                  android:layout_gravity="start"
                  android:choiceMode="singleChoice"
                  android:divider="@color/list_divider"
                  android:dividerHeight="1dp"       
                  android:listSelector="@drawable/list_selector"
                  android:background="@color/list_background"/&gt;
  
          &lt;/LinearLayout&gt;
  
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>
  
  <p>Error : View android.widget.linearLayout app:id/drawer_linear is not a sliding drawer.
  What is wrong in this layout ? </p>
  
  <p>Thanks for help, </p>