diff options
Diffstat (limited to 'res/anim/floating_action_button_elevation.xml')
-rw-r--r-- | res/anim/floating_action_button_elevation.xml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/res/anim/floating_action_button_elevation.xml b/res/anim/floating_action_button_elevation.xml new file mode 100644 index 0000000..8b33d89 --- /dev/null +++ b/res/anim/floating_action_button_elevation.xml @@ -0,0 +1,16 @@ +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:state_pressed="true"> + <objectAnimator + android:propertyName="translationZ" + android:duration="@android:integer/config_shortAnimTime" + android:valueTo="@dimen/fab_elevation_pressed" + android:valueType="floatType"/> + </item> + <item> + <objectAnimator + android:propertyName="translationZ" + android:duration="@android:integer/config_shortAnimTime" + android:valueTo="0dp" + android:valueType="floatType"/> + </item> +</selector> |