title: Cardview - Set different background color for each element
body: <p>I'm working on improving my <code>RecyclerView</code> and <code>CardView</code> skills as I'm new to this.</p>
  
  <p>I created a <code>CardView</code> layout and <code>RecyclerView</code> layout and then Layout Manager and View adapter, minimum that's required to get the app looking like this -</p>
  
  <p><a href="http://i.stack.imgur.com/DZzNi.jpg" rel="noreferrer">http://i.stack.imgur.com/DZzNi.jpg</a></p>
  
  <blockquote>
    <p>What I want to do is - I want different background colors for every
    element. For example - Red for "Froyo" , Amber "Gingerbread" and so
    on.</p>
  </blockquote>
  
  <p>Any way I can do it?</p>
  
  <p>Also, I want elements separated by <code>1dp</code></p>
  
  <p>Thank you</p>