title: Show multiple items in a CardView . Something like a ListView or GridView
body: <p><a href="https://i.stack.imgur.com/GFn1r.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GFn1r.png" alt="Sample Card View"></a></p>
  
  <p>I am retrieving data form FireStore Database in a array form. I want to show that values in a CardView. First thing that I tried to create some fixed Views to show items. But the challenge is that I don't know the count of that items. It may be 2 or be 12 but not more than that. Than I tried to set a ListView in CardView but I don't able to get desired results. So can you suggest me how I can do that.</p>
  
  <pre><code> &lt;android.support.v7.widget.CardView
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:id="@+id/card3_details_activity"
          android:layout_below="@id/card2_details_activity"
          android:layout_marginTop="10dp"
          android:layout_marginStart="8dp"
          android:layout_marginEnd="8dp"
          app:cardElevation="4dp"&gt;
  
          &lt;RelativeLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"&gt;
  
  
  
             &lt;ListView
                  android:layout_marginStart="40dp"
                  android:layout_width="wrap_content"
                  android:layout_height="100dp"
                  android:id="@+id/list_facilities_details"
                  android:fontFamily="@font/spinnaker"
                  android:layout_marginTop="15dp"
  
  
                  /&gt;
  
  
          &lt;/RelativeLayout&gt;
  
  
      &lt;/android.support.v7.widget.CardView&gt;
  </code></pre>