title: How to set color in the side of cardview
body: <p>I'm trying to understand what is the best way to set color in the side of a CardView like this </p>
  
  <p><a href="https://i.stack.imgur.com/qniDB.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/qniDB.jpg" alt="enter image description here"></a></p>
  
  <p>My cardview looks like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  xmlns:card_view="http://schemas.android.com/tools"
  android:id="@+id/cardViewWe"
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
  android:layout_marginLeft="4dp"
  android:layout_marginTop="4dp"
  android:layout_marginRight="4dp"
  android:layout_marginBottom="4dp"
  android:foreground="?attr/selectableItemBackground"
  android:transitionName="cardTransition"
  app:cardBackgroundColor="@drawable/selector"
  app:cardElevation="2dp"
  
  card_view:cardCornerRadius="8dp"&gt;
  
    &lt;androidx.constraintlayout.widget.ConstraintLayout
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
   .....
   .....
     &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
  &lt;/androidx.cardview.widget.CardView&gt;
  </code></pre>