diff options
Diffstat (limited to 'WordPress/src/main/res/anim/pressed_card.xml')
-rw-r--r-- | WordPress/src/main/res/anim/pressed_card.xml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/WordPress/src/main/res/anim/pressed_card.xml b/WordPress/src/main/res/anim/pressed_card.xml new file mode 100644 index 000000000..ccab3487d --- /dev/null +++ b/WordPress/src/main/res/anim/pressed_card.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + <item + android:state_enabled="true" + android:state_pressed="true"> + <objectAnimator + android:duration="@android:integer/config_shortAnimTime" + android:propertyName="translationZ" + android:valueTo="@dimen/card_elevation_pressed" + android:valueType="floatType" /> + </item> + <item> + <objectAnimator + android:duration="@android:integer/config_shortAnimTime" + android:propertyName="translationZ" + android:valueTo="0" + android:valueType="floatType" /> + </item> +</selector>
\ No newline at end of file |