title: cardview is not wrapping the content inside swipeview
body: <p>I Want to display an listview inside an Cardview.</p>
  
  <p>This is the Code I used : </p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;include
          android:id="@+id/toolbar"
          layout="@layout/toolbar" /&gt;
  
      &lt;android.support.v4.widget.SwipeRefreshLayout
          android:id="@+id/swipe"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_below="@+id/toolbar"
          android:paddingLeft="20dp"
          android:paddingRight="20dp"
          android:paddingTop="20dp"&gt;
  
          &lt;android.support.v7.widget.CardView xmlns:card_view="http://schemas.android.com/apk/res-auto"
              android:id="@+id/list_layout_with_fab_list_view_card"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              card_view:cardCornerRadius="4dp"&gt;
  
              &lt;ListView
                  android:id="@+id/list_layout_with_fab_list_view"
                  android:layout_width="fill_parent"
                  android:layout_height="100dp"
                  android:divider="@null"
                  android:fastScrollEnabled="true"
                  android:listSelector="@android:color/transparent"
                  android:outlineProvider="none" /&gt;
          &lt;/android.support.v7.widget.CardView&gt;
      &lt;/android.support.v4.widget.SwipeRefreshLayout&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>If i remove the SwipeView the CardView is wrapping the content. but i need both swipeview as well as CardView.</p>
  
  <p>Is there anything i have done wrong??</p>