title: Drawing ripple over view group content
body: <p>I'm trying to apply a ripple effect (<code>@drawable/pill</code>) to a layout. The ripple draws under the layout children, while I'd like the effect to be applied over the content.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context=".MainActivity"&gt;
  
      &lt;LinearLayout
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:clickable="true"
          android:focusable="true"
          android:background="@drawable/pill"
          android:padding="8dp"&gt;
  
          &lt;ImageView
              android:layout_width="40dp"
              android:layout_height="40dp"
              android:src="@drawable/my_icon"/&gt;
  
          &lt;TextView
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="Sample text"/&gt;
      &lt;/FrameLayout&gt;
  
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p>And pill.xml (where <code>@drawable/pill_bg</code> is a custom shape):</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;ripple xmlns:android="http://schemas.android.com/apk/res/android"
          android:color="?android:attr/colorControlHighlight"&gt;
      &lt;item android:id="@android:id/mask" android:drawable="@drawable/pill_bg"/&gt;
      &lt;item android:drawable="@drawable/pill_bg"/&gt;
  &lt;/ripple&gt;
  </code></pre>
  
  <p>Following other posts, I tried applying <code>android:background="@null"</code> and <code>android:drawSelectorOnTop="true"</code> to the <code>ImageView</code> with no luck.</p>
  
  <p>Does it even make sense to have the ripple defined as the background of a layout? I'm wondering if the right approach is to separate the ripple from the background drawable, and apply the ripple to a dummy view that overlaps the content. </p>