title: Cardview ripple effect doesn't work
body: <p>Min SDK is 21. When I click on a cardview in my recycler adapter, the ripple effect doesn't happen and just goes to the next screen. The recyclerview is inside a fragment.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:orientation="vertical"&gt;
  
      &lt;android.support.v7.widget.CardView
          android:id="@+id/entire_card"
          android:layout_width="match_parent"
          android:layout_height="265dp"
          android:layout_margin="8dp"
          android:foreground="?android:attr/selectableItemBackground"
          app:cardUseCompatPadding="true"
          app:cardCornerRadius="2dp"
          &gt;
  
  
          &lt;RelativeLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"&gt;
  
              &lt;ProgressBar
                  android:id="@+id/progressbar"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_centerInParent="true"
                  android:layout_centerHorizontal="true"
                  android:paddingTop="120dp"
                  android:visibility="visible"/&gt;
  
  
              &lt;ImageView
                  android:id="@+id/pet_image"
                  android:layout_width="match_parent"
                  android:layout_height="210dp"
                  android:layout_alignParentTop="true"
                  android:scaleType="centerCrop"
                  android:src="@drawable/placeholder"
                  android:visibility="gone"
                   /&gt;
  
              &lt;TextView
                  android:id="@+id/pet_description"
                  android:layout_width="fill_parent"
                  android:layout_height="55dp"
                  android:layout_below="@+id/pet_image"
                  android:padding="10dp"
                  android:textColor="#FFFFFF"
                  android:visibility="gone"
                  android:textSize="20sp"
                  android:background="@color/primaryColour"
                  /&gt;
  
          &lt;/RelativeLayout&gt;
      &lt;/android.support.v7.widget.CardView&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Adapter code where I have my onClick for each item.</p>
  
  <pre><code>public class ViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
          public TextView petInfo;
          public ImageView imgURL;
          public ProgressBar progressBar;
  
          private Context itemContext;
          public ViewHolder(View v){
              super(v);
              imgURL = (ImageView) v.findViewById(R.id.pet_image);
              petInfo = (TextView) v.findViewById(R.id.pet_description);
              progressBar = (ProgressBar) v.findViewById(R.id.progressbar);
  
              itemContext = v.getContext();
  
              v.setOnClickListener(this);
          }
  
          @Override
          public void onClick(View v){
  
              Intent intent= new Intent(itemContext, DetailCardLayout.class);
              Integer position = getAdapterPosition();
              intent.putExtra("CARDVIEW_POSITION", position);
              v.getContext().startActivity(intent);
  
          }
      }
  </code></pre>