title: Dynamically creating XML cards
body: <p>I'm trying to create some layouts dynamically and then inflate them.
  Currently I have some layouts and I'm inflating them by using my own adapter class. </p>
  
  <p>However now I need to create some cards based on data that is generated. I tried using the <code>card</code> class for this like this for example</p>
  
  <pre><code>for (int i = 1; i &lt; 10; i++) {
              Card card = new Card(this);
              card.setText("Test " + i);
              mCards.add(card);
          }
  </code></pre>
  
  <p>I can't get this designed how I would want it tho. So is there a way for me to use the xml setup to do this since I have more design options this way?</p>