title: Android ExpandableListView and CardView
body: <p>I would'like to use cardView for each group of an ExpendableListView. 
  As in the first picture.
  This is not my data, it's just for the idea of result. 
  I want one block by group and each group with n rows .</p>
  
  <p><img src="https://i.stack.imgur.com/DIwMU.png" alt="enter image description here"></p>
  
  <p>I can do it like this</p>
  
  <pre><code> &lt;LinearLayout&gt;
  
          &lt;android.support.v7.widget.CardView&gt;
              &lt;LinearLayout&gt;
                  &lt;TextView /&gt;
                  ...
                  &lt;TextView /&gt;
              &lt;/LinearLayout&gt;
          &lt;/android.support.v7.widget.CardView&gt;
  
          ...
  
          &lt;android.support.v7.widget.CardView&gt;
              &lt;LinearLayout&gt;
                  &lt;TextView /&gt;
                  ...
                  &lt;TextView /&gt;
              &lt;/LinearLayout&gt;
          &lt;/android.support.v7.widget.CardView&gt;
  
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>But I'm afraid of performance.</p>
  
  <p>With expendableListView I try to add separator and the best I can do :</p>
  
  <p><img src="https://i.stack.imgur.com/SH4MD.png" alt="enter image description here"></p>
  
  <p>But on pre Lollipop device, there is not a good result.</p>
  
  <p><img src="https://i.stack.imgur.com/jfFya.png" alt="enter image description here"></p>
  
  <p>I hope someone will have an idea.</p>