title: How to position CardViews next to each other?
body: <p>I want to make <code>Google PlayStore-like-CardView layout</code>. However, I do not manage to put Card Views side-by-side, rather they are being listed Vertically, top down.</p>
  
  <p><strong>SCREENSHOT:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/4UjkM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4UjkM.png" alt="Screenshot"></a></p>
  
  <p><strong>cardview.xml:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.v7.widget.CardView
      android:id="@+id/card_view"
      android:layout_width="150dp"
      android:layout_height="200dp"
      android:layout_margin="5dp"
      android:layout_gravity="center"
      card_view:cardCornerRadius="2dp"
      card_view:contentPadding="10dp"
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:card_view="http://schemas.android.com/apk/res-auto"&gt;
  
          &lt;RelativeLayout
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"&gt;
  
              &lt;ImageView
                  android:layout_width="100dp"
                  android:layout_height="100dp"
                  android:id="@+id/img_appicon"
                  android:layout_alignParentTop="true"
                  android:layout_alignLeft="@+id/tv_appname"
                  android:layout_alignStart="@+id/tv_appname" /&gt;
  
              &lt;TextView
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:textAppearance="?android:attr/textAppearanceMedium"
                  android:text="App Name"
                  android:id="@+id/tv_appname"
                  android:layout_below="@+id/img_appicon"
                  android:layout_centerHorizontal="true"
                  android:layout_marginTop="27dp" /&gt;
          &lt;/RelativeLayout&gt;
  &lt;/android.support.v7.widget.CardView&gt;
  </code></pre>
  
  <p>Any ideas how can I put those CardViews side-by-side?</p>
  
  <p>Thanks.</p>