title: Ripple effect over imageview
body: <p>To describe my problem i created small example.</p>
  
  <p>I have linearlayout with imageview and textview. For linearlayout i've set ripple drawable as background. But when i click or long click on linearlayout ripple animation shows under imageview. How show animation over imageview ?</p>
  
  <p><strong>main.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.constraint.ConstraintLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/activity_main"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;LinearLayout
          android:id="@+id/linear"
          android:layout_width="200dp"
          android:layout_height="200dp"
          android:background="@drawable/ripple"
          android:clickable="true"
          android:orientation="vertical"&gt;
  
          &lt;ImageView
              android:layout_width="match_parent"
              android:layout_height="100dp"
              android:src="@mipmap/index" /&gt;
  
          &lt;TextView
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="This is ripple test"
              android:textColor="#FF00FF00" /&gt;
      &lt;/LinearLayout&gt;
  
  &lt;/android.support.constraint.ConstraintLayout&gt;
  </code></pre>
  
  <p><strong>drawable-v21/ripple.xml:</strong></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="#FFFF0000"&gt;   
      &lt;item&gt;
          &lt;shape android:shape="rectangle"&gt;
              &lt;solid android:color="#FF000000"/&gt;
          &lt;/shape&gt;
      &lt;/item&gt;    
  &lt;/ripple&gt;
  </code></pre>
  
  <p><strong>drawable/ripple.xml:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;    
      &lt;item android:state_pressed="true"&gt;
          &lt;shape android:shape="rectangle"&gt;
              &lt;corners android:radius="3dp" /&gt;
              &lt;solid android:color="#FFFF0000" /&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
      &lt;item android:state_focused="true"&gt;
          &lt;shape android:shape="rectangle"&gt;
              &lt;corners android:radius="3dp" /&gt;
              &lt;solid android:color="#FFFF0000" /&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
      &lt;item&gt;
          &lt;shape android:shape="rectangle"&gt;
              &lt;corners android:radius="3dp" /&gt;
              &lt;solid android:color="#FF000000" /&gt;
          &lt;/shape&gt;
      &lt;/item&gt;    
  &lt;/selector&gt;
  </code></pre>
  
  <p><strong>screenshot how it looks now:</strong>
  <a href="https://i.stack.imgur.com/JSFli.png" rel="noreferrer"><img src="https://i.stack.imgur.com/JSFli.png" alt="enter image description here"></a></p>