OSDN Git Service

Add AnimatedVectorDrawable
authorztenghui <ztenghui@google.com>
Tue, 3 Jun 2014 21:02:10 +0000 (14:02 -0700)
committerztenghui <ztenghui@google.com>
Thu, 12 Jun 2014 20:18:59 +0000 (13:18 -0700)
commite5e92602a41a4ddc7b42cd1c171a0edfbd09b8da
treed1ca259815244f1f51c59f5853f6b5bcfd0e0858
parent88b00784684d7b706c7b0c4e833b1d67d73358b9
Add AnimatedVectorDrawable

Currently as a hidden class.
It can support many the animations now as far as ObjectAnimator and
hierarchical group can support.
And we don't have path morphing yet.

Also support the Animator / Interpolator inflation from Context and Resources.

Change-Id: I948bbdf7373ad291171eed0b497959dce8c2edf3
22 files changed:
core/java/android/animation/AnimatorInflater.java
core/java/android/view/animation/AccelerateInterpolator.java
core/java/android/view/animation/AnimationUtils.java
core/java/android/view/animation/AnticipateInterpolator.java
core/java/android/view/animation/AnticipateOvershootInterpolator.java
core/java/android/view/animation/CycleInterpolator.java
core/java/android/view/animation/DecelerateInterpolator.java
core/java/android/view/animation/OvershootInterpolator.java
core/java/android/view/animation/PathInterpolator.java
core/res/res/values/attrs.xml
graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java [new file with mode: 0644]
graphics/java/android/graphics/drawable/Drawable.java
graphics/java/android/graphics/drawable/VectorDrawable.java
tests/VectorDrawableTest/AndroidManifest.xml
tests/VectorDrawableTest/res/anim/trim_path_animation01.xml [new file with mode: 0644]
tests/VectorDrawableTest/res/anim/trim_path_animation02.xml [new file with mode: 0644]
tests/VectorDrawableTest/res/anim/trim_path_animation03.xml [new file with mode: 0644]
tests/VectorDrawableTest/res/anim/trim_path_animation04.xml [new file with mode: 0644]
tests/VectorDrawableTest/res/drawable/animation_vector_drawable01.xml [new file with mode: 0644]
tests/VectorDrawableTest/res/drawable/vector_drawable12.xml
tests/VectorDrawableTest/src/com/android/test/dynamic/AnimatedVectorDrawableTest.java [new file with mode: 0644]
tests/VectorDrawableTest/src/com/android/test/dynamic/VectorDrawableAnimation.java