diff options
Diffstat (limited to 'java/com/android/dialer/theme/res/animator')
-rw-r--r-- | java/com/android/dialer/theme/res/animator/activated_button_elevation.xml | 21 | ||||
-rw-r--r-- | java/com/android/dialer/theme/res/animator/button_elevation.xml | 21 |
2 files changed, 42 insertions, 0 deletions
diff --git a/java/com/android/dialer/theme/res/animator/activated_button_elevation.xml b/java/com/android/dialer/theme/res/animator/activated_button_elevation.xml new file mode 100644 index 000000000..b8ea4e8e6 --- /dev/null +++ b/java/com/android/dialer/theme/res/animator/activated_button_elevation.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + <item + android:state_enabled="true" + android:state_activated="true"> + <objectAnimator + android:duration="@android:integer/config_shortAnimTime" + android:propertyName="translationZ" + android:valueFrom="0dp" + android:valueTo="4dp" + android:valueType="floatType"/> + </item> + <item> + <objectAnimator + android:duration="@android:integer/config_shortAnimTime" + android:propertyName="translationZ" + android:valueFrom="4dp" + android:valueTo="0dp" + android:valueType="floatType"/> + </item> +</selector> diff --git a/java/com/android/dialer/theme/res/animator/button_elevation.xml b/java/com/android/dialer/theme/res/animator/button_elevation.xml new file mode 100644 index 000000000..8dd019e14 --- /dev/null +++ b/java/com/android/dialer/theme/res/animator/button_elevation.xml @@ -0,0 +1,21 @@ +<?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:valueFrom="0dp" + android:valueTo="4dp" + android:valueType="floatType"/> + </item> + <item> + <objectAnimator + android:duration="@android:integer/config_shortAnimTime" + android:propertyName="translationZ" + android:valueFrom="4dp" + android:valueTo="0dp" + android:valueType="floatType"/> + </item> +</selector> |