title: android:fitsSystemWindows not working
body: <p>In my theme I defined the following rules to draw my views behind the status bar:</p>
  
  <pre><code>&lt;item name="android:statusBarColor"&gt;@android:color/transparent&lt;/item&gt;
  &lt;item name="android:windowDrawsSystemBarBackgrounds"&gt;true&lt;/item&gt;
  </code></pre>
  
  <p>And in the Activity (onCreate):</p>
  
  <pre><code>getWindow.getDecorView.setSystemUiVisibility(
      View.SYSTEM_UI_FLAG_LAYOUT_STABLE |
      View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
  )
  </code></pre>
  
  <p>Then, in my View im using a Barcodescanner that is supposed to draw behind the status bar, which is working. However when I apply the <code>android:fitsSystemWindows</code> to any child view they don't get their position adjusted. It's working when I apply it to the root element, though.</p>
  
  <pre><code>&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
               android:layout_width="wrap_content"
               android:layout_height="wrap_content"&gt;
  
      &lt;my.Scanner
          android:id="@+id/scanner"
          android:layout_width="match_parent"
          android:layout_height="match_parent" /&gt;
  
      &lt;FrameLayout android:layout_width="match_parent"
                   android:layout_height="match_parent"
                   android:fitsSystemWindows="true"&gt; &lt;!-- Should receive a top padding, right? --&gt;
  
          &lt;View android:layout_width="50dp"
                android:layout_height="50dp"
                android:background="@color/red" /&gt;
  
      &lt;/FrameLayout&gt;
  
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/3vah1.png" alt="Screenshot"></p>