diff options
Diffstat (limited to 'java/com/android/incallui/commontheme/res/animator/disabled_alpha.xml')
-rw-r--r-- | java/com/android/incallui/commontheme/res/animator/disabled_alpha.xml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/java/com/android/incallui/commontheme/res/animator/disabled_alpha.xml b/java/com/android/incallui/commontheme/res/animator/disabled_alpha.xml new file mode 100644 index 000000000..8d78f0017 --- /dev/null +++ b/java/com/android/incallui/commontheme/res/animator/disabled_alpha.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="utf-8"?> +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + + <item android:state_enabled="false"> + <set> + <objectAnimator + android:propertyName="alpha" + android:duration="@android:integer/config_shortAnimTime" + android:valueTo=".3f" + android:valueType="floatType"/> + </set> + </item> + <item> + <set> + <objectAnimator + android:propertyName="alpha" + android:duration="@android:integer/config_shortAnimTime" + android:valueTo="1f" + android:valueType="floatType"/> + </set> + </item> +</selector> |