title: How to make two cardview scrolling horizontally?
body: <p>I have two cardview which have different childview and i want them to display at the bottom of my screen and want them horizontally scrolling, i have read other docs. but none of them fits for me. i have tried Horizontalscrollview but it didn't help.</p>
  
  <p>Thanks in advance.</p>
  
  <pre><code>&lt;android.support.v7.widget.CardView
              android:id="@+id/cardViewDemo1"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:layout_margin="10dp"
              android:layout_weight="1"
              android:elevation="5dp"
              app:cardBackgroundColor="#e4a455"
              app:cardCornerRadius="10dp"&gt;
  
              &lt;LinearLayout
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:orientation="vertical"
                  android:padding="10dp"
                  android:weightSum="1"&gt;
  
                  &lt;FrameLayout
                      android:id="@+id/frameDemoOne"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight=".2"&gt;
  
                      &lt;ImageView
                          android:layout_width="match_parent"
                          android:layout_height="match_parent"
                          android:paddingBottom="3dp"
                          android:paddingLeft="5dp"
                          android:paddingRight="5dp"
                          android:paddingTop="3dp"
                          android:scaleType="fitXY"
                          android:src="@drawable/demo_one" /&gt;
  
                      &lt;ImageView
                          android:layout_width="match_parent"
                          android:layout_height="match_parent"
                          android:src="@drawable/frame" /&gt;
  
                  &lt;/FrameLayout&gt;
  
  
                  &lt;android.support.v7.widget.CardView
                      android:id="@+id/cardViewDemo3"
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:layout_marginTop="5dp"
                      android:layout_weight=".8"
                      app:cardBackgroundColor="#e9e6e3"
                      app:cardCornerRadius="10dp"&gt;
  
                      &lt;RelativeLayout
                          android:layout_width="match_parent"
                          android:layout_height="match_parent"&gt;
  
                          &lt;TextView
                              android:layout_width="wrap_content"
                              android:layout_height="wrap_content"
                              android:layout_centerInParent="true"
                              android:text="DEMOVIDEOONE"
                              android:textColor="#c9750f"
                              android:textSize="15sp"
                              android:textStyle="bold" /&gt;
  
                      &lt;/RelativeLayout&gt;
                  &lt;/android.support.v7.widget.CardView&gt;
              &lt;/LinearLayout&gt;
  
  
          &lt;/android.support.v7.widget.CardView&gt;
  
          &lt;android.support.v7.widget.CardView
          android:id="@+id/cardViewDemo2"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_margin="10dp"
          android:layout_weight="1"
          android:elevation="5dp"
          app:cardBackgroundColor="#e4a455"
          app:cardCornerRadius="10dp"&gt;
  
          &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical"
          android:padding="10dp"
          android:weightSum="1"&gt;
  
          &lt;FrameLayout
          android:layout_weight=".2"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"&gt;
  
          &lt;ImageView
          android:padding="5dp"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:scaleType="fitXY"
          android:src="@drawable/demo_one" /&gt;
  
          &lt;ImageView
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:src="@drawable/frame" /&gt;
  
          &lt;/FrameLayout&gt;
  
  
          &lt;android.support.v7.widget.CardView
          app:cardBackgroundColor="#e1b784"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_marginTop="5dp"
          android:layout_weight=".8"
          app:cardCornerRadius="10dp"&gt;
  
          &lt;RelativeLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"&gt;
  
          &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_centerInParent="true"
          android:text="DEMOVIDEOONE"
          android:textColor="#fff"
          android:textSize="15sp"
          android:textStyle="bold" /&gt;
  
          &lt;/RelativeLayout&gt;
          &lt;/android.support.v7.widget.CardView&gt;
          &lt;/LinearLayout&gt;
  
  
          &lt;/android.support.v7.widget.CardView&gt;
  </code></pre>