title: Android FAB button on touch ripple and lift on touch animation using StateListAnimator?
body: <p>I have a <strong>FloatingActionButton</strong> in my xml layout for <strong>v21</strong> and above as shown below:</p>
  
  <pre><code>&lt;android.support.design.widget.FloatingActionButton
      android:id="@+id/share_fab"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_gravity="bottom|end"
      android:layout_margin="@dimen/fab_margin"
      android:background="@drawable/ripples_on_touch"
      android:elevation="@dimen/elevation_fab_resting"
      android:src="@drawable/ic_share_white_24dp"
      android:stateListAnimator="@animator/lift_on_touch"
      tools:targetApi="lollipop" /&gt;
  </code></pre>
  
  <p>Now, I want to give it a ripple effect and lift on touch animation on touch. I have to make use of the stateListAnimator to apply the translationZ to it. Also, I have given a background ripple effect on touch. However, I am unable to get the effects.</p>
  
  <p>This is my <strong>drawable-v21/ripples_on_touch.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="?android:colorControlHighlight"&gt;
      &lt;item&gt;
          &lt;shape android:shape="oval"&gt;
              &lt;solid android:color="?android:colorAccent" /&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
  &lt;/ripple&gt;
  </code></pre>
  
  <p>This is my <strong>animator-v21/lift_on_touch.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_enabled="true" android:state_pressed="true"&gt;
          &lt;objectAnimator
              android:duration="@android:integer/config_shortAnimTime"
              android:propertyName="translationZ"
              android:valueTo="12dp"
              android:valueType="floatType" /&gt;
      &lt;/item&gt;
      &lt;item&gt;
          &lt;objectAnimator
              android:duration="@android:integer/config_shortAnimTime"
              android:propertyName="translationZ"
              android:valueTo="0dp"
              android:valueType="floatType" /&gt;
      &lt;/item&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p><strong><em>PS: My FAB button has a resting elevation of 6dp and I would want a rise to 12dp when pressed as shown above. Any help would be appreciated.</em></strong></p>