title: RecyclerView wrap_content
body: <p>I am trying to center a RecyclerView when its <strong>layout_width</strong> is <strong>wrap_content</strong> without success</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:gravity="center_horizontal"
      android:orientation="vertical"&gt;
  
      &lt;android.support.v7.widget.RecyclerView
          android:id="@+id/rv_schemes"
          android:scrollbars="vertical"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"/&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>When the RecyclerView is given any definite layout_width of say 200dp then it does center otherwise it just aligns left. </p>
  
  <p>How to make the RecyclerView center_horizontal when its layout_width is wrap_content ?</p>