title: Appcompat Toolbar Not Showing With Navigation Drawer
body: <p>I am trying to configure the following in my app:</p>
  
  <ul>
  <li>Toolbar (Appcompat v7 version)</li>
  <li>Navigation Drawer</li>
  <li>Pre-<em>Lollipop</em> Appcompat v7 Material theme</li>
  </ul>
  
  <p>I followed the instructions here: <a href="http://android-developers.blogspot.com/2014/10/appcompat-v21-material-design-for-pre.html" rel="noreferrer">http://android-developers.blogspot.com/2014/10/appcompat-v21-material-design-for-pre.html</a></p>
  
  <p>However, after declaring .NoActionBar in the theme, as well as putting the toolbar in the layout, <strong>my toolbar does not show</strong>. What I end up getting is exactly what you'd expect when declaring no action bar -- no action bar. Here is the layout:</p>
  
  <pre><code>&lt;android.support.v4.widget.DrawerLayout 
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:id="@+id/drawer_layout"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"
      tools:context=".MainActivity"&gt;
  
  &lt;!-- Toolbar --&gt;
  &lt;include layout="@layout/toolbar"/&gt;
  
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:id="@+id/layout_main"
      android:layout_width="match_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical"&gt;
  
      &lt;Spinner
          android:id="@+id/spinner_main"
          android:visibility="gone"
          android:textAlignment="center"
          android:gravity="center"
          android:layout_gravity="center_horizontal"
          android:entries="@array/error_loading_content_array"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"/&gt;
  
      &lt;FrameLayout
          android:id="@+id/container"
          android:layout_weight="1"
          android:layout_width="match_parent"
          android:layout_height="0px"&gt;&lt;/FrameLayout&gt;
  
  &lt;/LinearLayout&gt;
  
  &lt;fragment
      android:id="@+id/navigation_drawer"
      android:layout_width="@dimen/navigation_drawer_width"
      android:layout_height="match_parent"
      android:layout_gravity="start"
      android:name=".NavigationDrawerFragment"
      tools:layout="@layout/fragment_navigation_drawer"/&gt;
  </code></pre>
  
  <p></p>
  
  <p>Toolbar.xml:
      </p>
  
  <pre><code>&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"
  app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
  android:minHeight="?attr/actionBarSize"
  android:background="?attr/colorPrimary"
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"/&gt;
  </code></pre>
  
  <p>In MainActivity.java:</p>
  
  <pre><code>// Load view/layout
  setContentView(R.layout.guidelib_activity_main);
  
  // TODO: Toolbar not showing
  mToolbar = (Toolbar)findViewById(R.id.toolbar);
  setSupportActionBar(mToolbar);
  getSupportActionBar().setDisplayHomeAsUpEnabled(true);
  getSupportActionBar().setHomeButtonEnabled(true);
  </code></pre>
  
  <p><strong>Solution</strong></p>
  
  <pre><code>&lt;LinearLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:id="@+id/linearlayout_root_main"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;android.support.v4.widget.DrawerLayout
          xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:tools="http://schemas.android.com/tools"
          android:id="@+id/drawer_layout"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          tools:context=".MainActivity"&gt;
  
          &lt;LinearLayout
              android:id="@+id/layout_main"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:orientation="vertical"&gt;
  
              &lt;!-- Toolbar --&gt;
              &lt;!-- Moved up to new LinearLayout root tag --&gt;
              &lt;!--&lt;include layout="@layout/toolbar"/&gt;--&gt;
              ... 
  </code></pre>