title: CardView background color appears red in API 21
body: <p>I have a CardView that changes cardBackgroundColor using a selector drawable depending on its activated state. This works fine in API 25 and 30 emulators, but in an API 21 emulator the background color is red and doesn't change. I don't have any custom colors that are red.</p>
  <p>CardView</p>
  <pre><code>&lt;androidx.cardview.widget.CardView xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
  xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
  xmlns:tools=&quot;http://schemas.android.com/tools&quot;
  android:layout_width=&quot;match_parent&quot;
  android:layout_height=&quot;wrap_content&quot;
  android:layout_marginHorizontal=&quot;6dp&quot;
  android:layout_marginTop=&quot;8dp&quot;
  app:cardBackgroundColor=&quot;@drawable/list_item_note_background&quot;
  app:cardCornerRadius=&quot;4dp&quot;&gt;
  
  &lt;androidx.appcompat.widget.AppCompatTextView
      android:id=&quot;@+id/note_name&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;wrap_content&quot;
      android:padding=&quot;5dp&quot;
      android:textSize=&quot;16sp&quot; /&gt;
  
  &lt;/androidx.cardview.widget.CardView&gt;
  </code></pre>
  <p>Drawable</p>
  <pre><code>&lt;selector xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;&gt;
  &lt;item android:color=&quot;?attr/colorPrimary&quot; android:state_activated=&quot;true&quot; /&gt;
  &lt;item android:color=&quot;?attr/colorSurface&quot; /&gt;
  &lt;/selector&gt;
  </code></pre>
  <p>Primary color is #04d4f0
  Surface color is #FFFFFF</p>