title: fitsSystemWindows effect gone for fragments added via FragmentTransaction
body: <p>I have an Activity with navigation drawer and full-bleed Fragment (with image in the top that must appear behind translucent system bar on Lollipop). While I had an interim solution where the Fragment was inflated by simply having <code>&lt;fragment&gt;</code> tag in Activity's XML, it looked fine.</p>
  
  <p>Then I had to replace <code>&lt;fragment&gt;</code> with <code>&lt;FrameLayout&gt;</code> and perform fragment transactions, and now the fragment does not appear behind the system bar anymore, despite <code>fitsSystemWindows</code> is set to <code>true</code> across all required hierarchy.</p>
  
  <p>I believe there might be some difference between how <code>&lt;fragment&gt;</code> gets inflated within Activity's layout vs on its own. I googled and found some solutions for KitKat, but neither of those worked for me (Lollipop).</p>
  
  <p><strong>activity.xml</strong></p>
  
  <pre><code>&lt;android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
                                          xmlns:app="http://schemas.android.com/apk/res-auto"
                                          android:id="@+id/drawer_layout"
                                          android:layout_height="match_parent"
                                          android:layout_width="match_parent"
                                          android:fitsSystemWindows="true"&gt;
  
      &lt;FrameLayout
              android:id="@+id/fragment_host"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:fitsSystemWindows="true"&gt;
  
      &lt;/FrameLayout&gt;
  
      &lt;android.support.design.widget.NavigationView
              android:id="@+id/nav_view"
              android:layout_height="match_parent"
              android:layout_width="wrap_content"
              android:layout_gravity="start"
              android:fitsSystemWindows="true"/&gt;
  
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>
  
  <p><strong>fragment.xml</strong></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"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:fitsSystemWindows="true"&gt;
  
      &lt;android.support.design.widget.AppBarLayout
              android:layout_width="match_parent"
              android:layout_height="224dp"
              android:fitsSystemWindows="true"
              android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"&gt;
  ...
  </code></pre>
  
  <p>It worked when <strong>activity.xml</strong> was this way:</p>
  
  <pre><code>&lt;android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
                                          xmlns:app="http://schemas.android.com/apk/res-auto"
                                          android:id="@+id/drawer_layout"
                                          android:layout_height="match_parent"
                                          android:layout_width="match_parent"
                                          android:fitsSystemWindows="true"&gt;
  
      &lt;fragment xmlns:android="http://schemas.android.com/apk/res/android"
                xmlns:tools="http://schemas.android.com/tools"
                android:id="@+id/fragment"
                android:name="com.actinarium.random.ui.home.HomeCardsFragment"
                tools:layout="@layout/fragment_home"
                android:layout_width="match_parent"
                android:layout_height="match_parent"/&gt;
  
      &lt;android.support.design.widget.NavigationView
              android:id="@+id/nav_view"
              android:layout_height="match_parent"
              android:layout_width="wrap_content"
              android:layout_gravity="start"
              android:fitsSystemWindows="true"/&gt;
  
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>