title: How to center cardview items into recyclerview
body: <p>I have created a collapsingtoolbar with recyclerview, but i can not center the cardview objects in recyclerview. As you can see i have added gravity in the cardview but it is not working. Any idea????</p>
  
  <p>activity_main:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.design.widget.CoordinatorLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  android:id="@+id/collapsing_toolbar"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:background="@drawable/background"
  app:expandedTitleMarginStart="60dp"&gt;
  
  &lt;android.support.design.widget.AppBarLayout
      android:layout_width="match_parent"
      android:layout_height="255dp"
      android:fitsSystemWindows="true"
      android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"&gt;
  
      &lt;android.support.design.widget.CollapsingToolbarLayout
          xmlns:tools="http://schemas.android.com/tools"
          tools:context=".MainActivity"
          android:id="@+id/collapsing_toolbar_layout"
          android:background="@drawable/header1"
          android:layout_height="match_parent"
          android:layout_width="match_parent"
          android:fitsSystemWindows="true"
          app:layout_scrollFlags="scroll|exitUntilCollapsed"
          app:expandedTitleMarginStart="48dp"
          app:expandedTitleMarginEnd="64dp"&gt;
  
          &lt;android.support.v7.widget.Toolbar
              android:id="@+id/toolbar"
  
              android:layout_width="match_parent"
              android:layout_height="?attr/actionBarSize"
              app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
              app:layout_collapseMode="pin"
              android:transitionGroup="false"&gt;
  
          &lt;/android.support.v7.widget.Toolbar&gt;
      &lt;/android.support.design.widget.CollapsingToolbarLayout&gt;
  &lt;/android.support.design.widget.AppBarLayout&gt;
  
  &lt;android.support.v7.widget.RecyclerView
      android:id="@+id/recycler_view"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      app:layout_behavior="@string/appbar_scrolling_view_behavior"&gt;
  &lt;/android.support.v7.widget.RecyclerView&gt;
  </code></pre>
  
  <p></p>
  
  <p>Cardview:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.v7.widget.CardView
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  android:id="@+id/cardView"
  android:layout_width="200dp"
  android:layout_height="75dp"
  android:layout_marginTop="@dimen/activity_vertical_margin"
  android:layout_marginBottom="@dimen/activity_vertical_margin"
  android:layout_centerHorizontal="true"
  android:layout_gravity="center_horizontal"
  app:cardCornerRadius="@dimen/activity_vertical_margin"
  &gt;
  
  &lt;RelativeLayout
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:padding="10dp"&gt;
  
      &lt;TextView
          android:id="@+id/title"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:textSize="16sp" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p>And here is how my app is look like:
  <a href="https://drive.google.com/open?id=0ByeD1eD5C-v_SDVteTNOR0l2Qms" rel="nofollow">app image</a></p>