title: SwipeRefreshLayout in AppBarLayout not wrapping content
body: <p>I am trying to implement pull to refresh but I'm having an issue with <code>SwipeRefreshLayout</code> not wrapping the child view's height. In the view preview and in a live build it appears to have 0 height.</p>
  
  <p>The layout as as follows:</p>
  
  <pre><code>&lt;android.support.design.widget.AppBarLayout
      android:id="@+id/app_bar"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      app:elevation="0dp"&gt;
  
      &lt;android.support.v7.widget.Toolbar
          android:id="@+id/toolbar"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:background="@android:color/transparent"
          app:layout_collapseMode="pin"&gt;
  
          &lt;android.support.v4.widget.SwipeRefreshLayout
              android:id="@+id/swipe_refresh_layout"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"&gt;
  
              &lt;include layout="@layout/child_layout" /&gt;
  
          &lt;/android.support.v4.widget.SwipeRefreshLayout&gt;
      &lt;/android.support.v7.widget.Toolbar&gt;
  
  &lt;/android.support.design.widget.AppBarLayout&gt;
  </code></pre>
  
  <p>I have also tried making the <code>SwipeRefreshLayout</code> the parent of the <code>AppBarLayout</code> without any success as well as putting a singular <code>LinearLayout</code> inside of the <code>SwipeRefreshLayout</code>. The only thing that seems to prevent the height of the swipe layout from being 0 is to set it statically but I want it to be dynamic based upon the height of the child view.</p>
  
  <p>Is there something I'm missing here? It seems like there may be a bug with <code>SwipeRefreshLayout</code> because replacing it with a <code>LinearLayout</code> that also wraps the content works as expected.</p>