title: transparent status bar with fitsSystemwindows toolbar pushed up
body: <pre><code>Android Studio 2.3 RC 1
  </code></pre>
  
  <p>I have created an app that uses a transparent status bar that works ok as the status bar is transparent. The problem is with my toolbar as it seems to get pushed up. I have been trying to solve this issue using fitsSystemWindows to true. However, this has not worked.</p>
  
  <p><a href="https://i.stack.imgur.com/lDjbJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lDjbJ.png" alt="enter image description here"></a></p>
  
  <p>Just wondering if there is something I am doing wrong.</p>
  
  <p>The layout:</p>
  
  <pre><code>&lt;android.support.design.widget.CoordinatorLayout
      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="me.androidbox.busbymovies.movielist.MovieListViewImp"&gt;
  
      &lt;android.support.design.widget.AppBarLayout
          android:id="@+id/appbarlayout"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:fitsSystemWindows="true"
          android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"&gt;
  
          &lt;android.support.design.widget.CollapsingToolbarLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:fitsSystemWindows="true"
              app:contentScrim="@color/primary"
              app:expandedTitleMarginEnd="64dp"
              app:expandedTitleMarginStart="48dp"
              app:layout_scrollFlags="scroll|exitUntilCollapsed"&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/tool_bar"
                  android:layout_width="match_parent"
                  android:layout_height="?attr/actionBarSize"
                  android:background="@color/primary"
                  android:fitsSystemWindows="true"
                  android:minHeight="?attr/actionBarSize"
                  app:layout_collapseMode="parallax"&gt;
              &lt;/android.support.v7.widget.Toolbar&gt;
  
          &lt;/android.support.design.widget.CollapsingToolbarLayout&gt;
  
      &lt;/android.support.design.widget.AppBarLayout&gt;
  
      &lt;android.support.v7.widget.RecyclerView
          android:id="@+id/rvMovieList"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_below="@id/tool_bar"
          app:layout_behavior="@string/appbar_scrolling_view_behavior" /&gt;
  
      &lt;android.support.v4.widget.ContentLoadingProgressBar
          android:id="@+id/pbMovieList"
          style="@style/Widget.AppCompat.ProgressBar"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center" /&gt;
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p>My styles:</p>
  
  <pre><code>  &lt;style name="AppTheme" parent="BaseTheme"&gt;
          &lt;item name="android:statusBarColor"&gt;@android:color/transparent&lt;/item&gt;
          &lt;item name="android:navigationBarColor"&gt;@android:color/transparent&lt;/item&gt;
          &lt;item name="android:windowTranslucentStatus"&gt;true&lt;/item&gt;
          &lt;item name="android:windowTranslucentNavigation"&gt;true&lt;/item&gt;
          &lt;item name="android:windowDrawsSystemBarBackgrounds"&gt;true&lt;/item&gt;
      &lt;/style&gt;
  </code></pre>
  
  <p>And in my onCreate(..) in the main activity</p>
  
  <pre><code> if(Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.KITKAT) {
          final Window window = getWindow();
          window.setFlags(
                  WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS,
                  WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
   }
  </code></pre>