title: CardView layout_width="match_parent" does not match parent RecyclerView width
body: <p>I have a fragment with contains a RecyclerView with layout_width="match_parent":</p>
  
  <pre><code>&lt;android.support.v7.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:layout_gravity="center"
      android:paddingLeft="@dimen/activity_horizontal_margin"
      android:paddingRight="@dimen/activity_horizontal_margin"
      android:paddingTop="@dimen/activity_vertical_margin"
      android:paddingBottom="@dimen/activity_vertical_margin"
      tools:context=".MainActivity$PlaceholderFragment" /&gt;
  </code></pre>
  
  <p>The item in the RecyclerView is a CardView also with layout_width="match_parent":</p>
  
  <pre><code>&lt;android.support.v7.widget.CardView
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:card_view="http://schemas.android.com/apk/res-auto"
      android:id="@+id/card_view"
      android:layout_gravity="center"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:layout_margin="20dp"
      card_view:cardCornerRadius="4dp"&gt;
  
      &lt;TextView
          android:layout_gravity="center"
          android:id="@+id/info_text"
          android:layout_width="match_parent"
          android:gravity="center"
          android:layout_height="match_parent"
          android:textAppearance="?android:textAppearanceLarge"/&gt;
  &lt;/android.support.v7.widget.CardView&gt;
  </code></pre>
  
  <p>I inflate the item view as below:</p>
  
  <pre><code>public MyAdapter.ViewHolder onCreateViewHolder(ViewGroup parent,
                                                     int viewType) {
          CardView v = (CardView) LayoutInflater.from(parent.getContext())
                  .inflate(R.layout.card_listitem, null, true);
  
          ViewHolder vh = new ViewHolder(v);
          return vh;
      }
  </code></pre>
  
  <p>But when I run the app, the CardView is rendered as wrap_content as shown below:</p>
  
  <p><img src="https://i.stack.imgur.com/PX8aC.png" alt="CardsBug"></p>
  
  <p>Note that this was run on emulator, not a real device.</p>
  
  <p>Am I doing something wrong, or is it a bug?</p>