summaryrefslogtreecommitdiffstats
path: root/core/res/res/anim
diff options
context:
space:
mode:
authorAlan Viverette <alanv@google.com>2015-05-29 15:12:14 -0700
committerAlan Viverette <alanv@google.com>2015-05-29 15:12:14 -0700
commit87e1938be8e6c2ac7e6163a63df5dd69633cc836 (patch)
treec4eb23c5d1e683ffd2fe36307b8dc529f49629b3 /core/res/res/anim
parent517f3ee41afb7713f1fc6fa37a6f3a6efa97a020 (diff)
downloadframeworks_base-87e1938be8e6c2ac7e6163a63df5dd69633cc836.zip
frameworks_base-87e1938be8e6c2ac7e6163a63df5dd69633cc836.tar.gz
frameworks_base-87e1938be8e6c2ac7e6163a63df5dd69633cc836.tar.bz2
Replace PNG-based seekbar thumb animation with AVD
Adds optical inset support for VectorDrawable and GradientDrawable. Bug: 19944181 Change-Id: I9df04d9fe17ad858413e7f93694bf37ee2c43c85
Diffstat (limited to 'core/res/res/anim')
-rw-r--r--core/res/res/anim/seekbar_thumb_pressed_to_unpressed_thumb_animation.xml18
-rw-r--r--core/res/res/anim/seekbar_thumb_unpressed_to_pressed_thumb_0_animation.xml18
2 files changed, 36 insertions, 0 deletions
diff --git a/core/res/res/anim/seekbar_thumb_pressed_to_unpressed_thumb_animation.xml b/core/res/res/anim/seekbar_thumb_pressed_to_unpressed_thumb_animation.xml
new file mode 100644
index 0000000..081b552
--- /dev/null
+++ b/core/res/res/anim/seekbar_thumb_pressed_to_unpressed_thumb_animation.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<set
+ xmlns:android="http://schemas.android.com/apk/res/android" >
+ <objectAnimator
+ android:duration="133"
+ android:propertyName="scaleX"
+ android:valueFrom="1.5"
+ android:valueTo="1.0"
+ android:valueType="floatType"
+ android:interpolator="@android:interpolator/fast_out_slow_in" />
+ <objectAnimator
+ android:duration="133"
+ android:propertyName="scaleY"
+ android:valueFrom="1.5"
+ android:valueTo="1.0"
+ android:valueType="floatType"
+ android:interpolator="@android:interpolator/fast_out_slow_in" />
+</set>
diff --git a/core/res/res/anim/seekbar_thumb_unpressed_to_pressed_thumb_0_animation.xml b/core/res/res/anim/seekbar_thumb_unpressed_to_pressed_thumb_0_animation.xml
new file mode 100644
index 0000000..41e5a44
--- /dev/null
+++ b/core/res/res/anim/seekbar_thumb_unpressed_to_pressed_thumb_0_animation.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<set
+ xmlns:android="http://schemas.android.com/apk/res/android" >
+ <objectAnimator
+ android:duration="533"
+ android:propertyName="scaleX"
+ android:valueFrom="1.0"
+ android:valueTo="1.5"
+ android:valueType="floatType"
+ android:interpolator="@android:interpolator/fast_out_slow_in" />
+ <objectAnimator
+ android:duration="533"
+ android:propertyName="scaleY"
+ android:valueFrom="1.0"
+ android:valueTo="1.5"
+ android:valueType="floatType"
+ android:interpolator="@android:interpolator/fast_out_slow_in" />
+</set>