title: Multiple RecyclerView items in one CardView
body: <p>I'm trying to create multiple RecyclerView items in each CardView item as this app does:</p>
  
  <p><img src="https://i.stack.imgur.com/2SKAr.png" alt="enter image description here"></p>
  
  <p>I had created a cardview_item.xml that contains the dataset item (the match in this example)</p>
  
  <p>and a cardview_title.xml that contains the title of the card (the league in this example).</p>
  
  <p>cardview_title.xml:</p>
  
  <pre><code>&lt;android.support.v7.widget.CardView
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:card_view="http://schemas.android.com/apk/res-auto"
  android:layout_width="fill_parent"
  android:layout_height="88dp"
  card_view:cardCornerRadius="1dp"
  android:layout_margin="4dp"&gt;
  
  &lt;RelativeLayout
      android:layout_width="match_parent"
      android:layout_height="wrap_content" &gt;
  
      &lt;TextView
          android:id="@+id/amount_title"
          android:layout_height="wrap_content"
          android:layout_width="wrap_content"
          android:layout_marginEnd="5dp"
          android:layout_marginTop="5dp"
          android:gravity="center"
          android:layout_alignParentEnd="true"
          android:padding="5dp"
          android:text="@string/amount"
          android:textAllCaps="true"
          android:textSize="20sp"
          android:textColor="@android:color/black"/&gt;
  
      .
      .
      .
  
      &lt;TextView
          android:id="@+id/week_title"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignBottom="@id/amount_title"
          android:layout_alignTop="@id/amount_title"
          android:layout_alignParentStart="true"
          android:layout_marginStart="5dp"
          android:gravity="center"
          android:padding="5dp"
          android:textAllCaps="true"
          android:text="@string/week"
          android:textColor="@android:color/black"
          android:textSize="20sp" /&gt;
  
      &lt;View
          android:id="@+id/lineSeparator"
          android:layout_width="fill_parent"
          android:layout_height="1dp"
          android:layout_below="@id/week_title"
          android:background="@android:color/darker_gray"/&gt;
  
      &lt;include
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          layout="@layout/cardview_item"
          android:layout_below="@+id/week_title"
          android:layout_centerHorizontal="true" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p>The RecyclerView.Adapter that I extended shows each dataset item in separate cardview:</p>
  
  <p><img src="https://i.stack.imgur.com/ilya7.png" alt="enter image description here"></p>
  
  <p>How can I implement this with RecyclerView, CardView and ViewHolder design pattern?</p>
  
  <p>Any help will be appreciated.</p>
  
  <p>Thanks</p>