diff options
Diffstat (limited to 'java/com/android/incallui/incall/impl/res/animator/incall_button_elevation.xml')
-rw-r--r-- | java/com/android/incallui/incall/impl/res/animator/incall_button_elevation.xml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/java/com/android/incallui/incall/impl/res/animator/incall_button_elevation.xml b/java/com/android/incallui/incall/impl/res/animator/incall_button_elevation.xml new file mode 100644 index 000000000..69215adda --- /dev/null +++ b/java/com/android/incallui/incall/impl/res/animator/incall_button_elevation.xml @@ -0,0 +1,31 @@ +<?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="8dp" + android:valueType="floatType"/> + + </item> + <item + android:state_checked="true" + android:state_enabled="true" + android:state_pressed="false"> + <objectAnimator + android:duration="@android:integer/config_shortAnimTime" + android:propertyName="translationZ" + android:valueTo="4dp" + android:valueType="floatType"/> + + </item> + <item> + <objectAnimator + android:duration="@android:integer/config_shortAnimTime" + android:propertyName="translationZ" + android:valueTo="0dp" + android:valueType="floatType"/> + </item> +</selector> |