title: Create Ripple Effect on ListView Item for API < & > 21
body: <p>I have the below XML and am trying to create a ripple effect onClick. The background of each item in the ListView is black, so ideally the ripple effect would generate some sort of grey color:</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
  android:background="?android:attr/selectableItemBackground"
  android:orientation="vertical"&gt;
  
  &lt;View
      android:layout_width="match_parent"
      android:layout_height="1dp"
      android:background="@color/white" /&gt;
  
  
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="80dp"
      android:background="@color/black"
      android:orientation="horizontal"&gt;
  
      &lt;ImageView
          android:id="@+id/imageView1"
          android:layout_width="80dp"
          android:layout_height="80dp"
          android:src="@drawable/placeholder" /&gt;
  
      &lt;TextView
          android:id="@+id/latest_item_question"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:textColor="@color/white"
          android:textSize="12sp" /&gt;
  
  &lt;/LinearLayout&gt;
  
  &lt;View
      android:layout_width="match_parent"
      android:layout_height="1dp"
      android:background="@color/white" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>The code creates the following. Note that I want to cover pre and post Lollipop:</p>
  
  <p><a href="https://i.stack.imgur.com/hN1VV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hN1VV.png" alt="enter image description here"></a></p>