title: SwipeRefreshLayout is hidden behind ActionBar with transparent status bars
body: <p>I'm having some trouble making my SwipeRefreshLayout visible when using transparent navigation, and status bars (API Level 19). That is to say, its currently under the status bar (at the top of the screen), when I want it to be under the actionbar. </p>
  
  <p>The ListView is working as expected. That is, the content is properly shown behind the navigation bars, and does not get hidden under the status bar, or actionbar. </p>
  
  <p>With this being said, if I add the android:fitsSystemWindows="true" property to my relative layout, the SwipeRefreshLayout works properly. But, doing this makes my listview not visible under the transparent navigation bars. Instead, the navigation bars are simply the color of my background, and do not allow content from my listview to be shown under it.</p>
  
  <p>How can I get the ListView to stay how it is now, and also get my SwipeRefreshLayout to be visible (instead of being hidden under the status bar, at the top of the screen)?</p>
  
  <p>Below is my 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="fill_parent"
          android:layout_height="fill_parent"&gt;
  
          &lt;RelativeLayout
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:paddingTop="10dp"
              android:background="#ccc"
              android:clipToPadding="false"&gt;
  
              &lt;android.support.v4.widget.SwipeRefreshLayout
                  android:id="@+id/swipe_container"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"&gt;
  
              &lt;FrameLayout
                  android:id="@+id/container"
                  android:paddingLeft="@dimen/activity_horizontal_margin"
                  android:paddingRight="@dimen/activity_horizontal_margin"
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent"
                  android:background="#ccc"&gt;
  
                  &lt;ListView
                      android:layout_width="fill_parent"
                      android:layout_height="fill_parent"
                      android:id="@+id/listView"
                      android:paddingTop="10dp"
                      android:fitsSystemWindows="true"
                      android:clipToPadding="false"
                      android:divider="@android:color/transparent"
                      android:layout_gravity="left|top" /&gt;
  
                  &lt;TextView
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:textAppearance="?android:attr/textAppearanceLarge"
                      android:text="No Internet Connection"
                      android:id="@+id/noInternet"
                      android:textColor="@android:color/secondary_text_light"
                      android:layout_gravity="center" /&gt;
  
                  &lt;TextView
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:textAppearance="?android:attr/textAppearanceMedium"
                      android:text="Pull To Refresh"
                      android:translationY="20dp"
                      android:id="@+id/nointernetSub"
                      android:textColor="@android:color/secondary_text_light"
                      android:layout_gravity="center" /&gt;
  
              &lt;/FrameLayout&gt;
  
              &lt;/android.support.v4.widget.SwipeRefreshLayout&gt;
  
          &lt;/RelativeLayout&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="com.package.app.NavigationDrawerFragment"
          tools:layout="@layout/fragment_navigation_drawer" /&gt;
  
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>