title: Android Ripple effect for ImageView "state_select" Not Working
body: <p>I am developing Ripple effect for ImageView in Lolipop.  My drawable XML is like below.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;ripple xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:color="?android:colorControlHighlight"
      tools:targetApi="21"&gt;
      &lt;item android:state_selected="true" android:drawable="@drawable/image_selected"/&gt;
      &lt;item android:state_pressed="true" android:drawable="@drawable/image_selected"/&gt;
      &lt;item android:drawable="@drawable/image_unselected"/&gt;
  &lt;/ripple&gt;
  </code></pre>
  
  <p>And In XML i am giving SRC to ImageView like below.</p>
  
  <pre><code>    &lt;ImageView
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_weight="1"
          android:id="@+id/iv_image"
          android:scaleType="fitXY"
          android:src="@drawable/bg_tab_item" /&gt;
  </code></pre>
  
  <p>My problem is in Activity.java, if i mention </p>
  
  <pre><code>ImageView.setSelected(true);
  </code></pre>
  
  <p>It is not showing selected image. </p>
  
  <p>Please help me where i am doing wrong.</p>