title: Android DrawerLayout (with NavigationView) behind status bar
body: <p>I have an app with a <code>DrawerLayout</code> that contains a <code>NavigationView</code>:</p>
  
  <p><strong>activity_layout.xml:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &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:layout_width="match_parent"
      android:layout_height="match_parent"
      android:id="@+id/drawer_layout"
      android:fitsSystemWindows="true"&gt;
  
      &lt;android.support.constraint.ConstraintLayout
          android:id="@+id/activity_list"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          tools:context="com.exmaple.appname.activityname"&gt;
  
          &lt;android.support.v7.widget.Toolbar
              android:id="@+id/actionbar_toolbar"
              android:layout_width="match_parent"
              android:layout_height="?attr/actionBarSize"
              android:background="?attr/colorPrimary"
              android:elevation="4dp"
              android:theme="@style/ThemeOverlay.AppCompat.ActionBar"
              app:popupTheme="@style/Theme.AppCompat"/&gt;
  
          […]
  
      &lt;/android.support.constraint.ConstraintLayout&gt;
  
      &lt;android.support.design.widget.NavigationView
          android:id="@+id/navigation"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_gravity="start"
          app:menu="@menu/nav_drawer"
          android:fitsSystemWindows="true"/&gt;
  
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>
  
  <p>I have added the following styles as well:</p>
  
  <p><strong>styles.xml:</strong></p>
  
  <pre><code>&lt;style name="AppTheme" parent="Theme.AppCompat.NoActionBar"&gt;
      […]
  
      &lt;item name="windowActionBar"&gt;false&lt;/item&gt;
      &lt;item name="android:windowNoTitle"&gt;true&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p><strong>values-21/styles.xml:</strong></p>
  
  <pre><code>&lt;style name="AppTheme.NoActionBar" parent="AppTheme"&gt;
      &lt;item name="android:windowDrawsSystemBarBackgrounds"&gt;true&lt;/item&gt;
      &lt;item name="android:statusBarColor"&gt;@android:color/transparent&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>All of this code is based on the <a href="https://github.com/google/iosched" rel="nofollow noreferrer">Google I/O Schedule App</a>, however the <code>DrawerLayout</code> still does not render behind the status bar. Any ideas as to why this combination of solutions isn't working and what solutions might? I've found that drawing behind the status bar is never a one-size-fits-all solution, but after trying every combination of solutions on Stack Overflow that I can think of, I still can't get it.</p>
  
  <p>Current drawer image:
  <a href="https://i.stack.imgur.com/4F0Ko.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4F0Ko.png" alt="enter image description here"></a></p>