title: RecyclerView gravity
body: <p>I have a recylcler view, but it seems that does not implement the setGravity method.</p>
  <p>My list is horizontally aligned, but I need it to be centered. How do I do that?</p>
  <p><strong>fragment_my_zone_item_controlled.xml</strong></p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;RelativeLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot;
      android:background=&quot;@color/dark_grey&quot;&gt;
  
      &lt;FrameLayout
          android:id=&quot;@+id/fragment_my_zone_item_controlled_content&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;match_parent&quot;
          android:layout_below=&quot;@+id/fragment_my_zone_item_controlled_tabs&quot;
          android:layout_marginBottom=&quot;12dp&quot;
          android:layout_marginTop=&quot;12dp&quot; /&gt;
  
      &lt;android.support.v7.widget.RecyclerView
          android:id=&quot;@+id/fragment_my_zone_item_controlled_tabs&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;44dp&quot;
          android:background=&quot;@color/action_bar_color&quot;
          android:scrollbars=&quot;none&quot; /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  <p><img src="https://i.stack.imgur.com/Jh2Zt.png" alt="This is how it looks" /></p>
  <p>This is how it looks, I need it to be centered</p>
  <p>Thank you guys</p>