title: Ripple Effect on androidx.cardview.widget.CardView
body: <p>I am trying to add ripple effect on click of card view strangely it is not coming up?</p>
  
  <p>What could be wrong here?</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:card_view="http://schemas.android.com/apk/res-auto"
      xmlns:app="http://schemas.android.com/tools"
      android:id="@+id/card_view"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:foreground="?android:attr/selectableItemBackground"
      android:clickable="true"
      android:layout_margin="5dp"
      card_view:cardCornerRadius="6dp"
      card_view:contentPadding="5dp"
      card_view:cardElevation="4dp"
      card_view:cardMaxElevation="6dp"
      app:ignore="NamespaceTypo"&gt; 
  
  
  &lt;/androidx.cardview.widget.CardView&gt;
  </code></pre>
  
  <p>// I have a linear layout with three textview inside the cardview.</p>
  
  <p>RecyclerView:</p>
  
  <pre><code>&lt;LinearLayout
          android:id="@+id/cardViewLayout"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_margin="5dp"
          android:visibility="gone"&gt;
  
          &lt;androidx.swiperefreshlayout.widget.SwipeRefreshLayout
              android:id="@+id/swipe_refresh_layout"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"&gt;
  
              &lt;androidx.recyclerview.widget.RecyclerView
                  android:id="@+id/cardList"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent" /&gt;
  
          &lt;/androidx.swiperefreshlayout.widget.SwipeRefreshLayout&gt;
  
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Thanks!</p>