Loading graphics/java/android/graphics/drawable/VectorDrawable.java +8 −8 Original line number Diff line number Diff line Loading @@ -1456,12 +1456,12 @@ public class VectorDrawable extends Drawable { /* Setters and Getters, used by animator from AnimatedVectorDrawable. */ @SuppressWarnings("unused") int getStroke() { int getStrokeColor() { return mStrokeColor; } @SuppressWarnings("unused") void setStroke(int strokeColor) { void setStrokeColor(int strokeColor) { mStrokeColor = strokeColor; } Loading @@ -1476,32 +1476,32 @@ public class VectorDrawable extends Drawable { } @SuppressWarnings("unused") float getstrokeAlpha() { float getStrokeAlpha() { return mStrokeAlpha; } @SuppressWarnings("unused") void setstrokeAlpha(float strokeAlpha) { void setStrokeAlpha(float strokeAlpha) { mStrokeAlpha = strokeAlpha; } @SuppressWarnings("unused") int getFill() { int getFillColor() { return mFillColor; } @SuppressWarnings("unused") void setFill(int fillColor) { void setFillColor(int fillColor) { mFillColor = fillColor; } @SuppressWarnings("unused") float getfillAlpha() { float getFillAlpha() { return mFillAlpha; } @SuppressWarnings("unused") void setfillAlpha(float fillAlpha) { void setFillAlpha(float fillAlpha) { mFillAlpha = fillAlpha; } Loading tests/VectorDrawableTest/res/anim/animation_favorite.xml +30 −0 Original line number Diff line number Diff line Loading @@ -25,5 +25,35 @@ android:valueFrom="@string/round_box" android:valueTo="@string/heart" android:valueType="pathType" /> <objectAnimator android:duration="8000" android:propertyName="fillAlpha" android:repeatCount="-1" android:valueFrom="1.0" android:valueTo="0.0" /> <objectAnimator android:duration="8000" android:propertyName="strokeAlpha" android:repeatCount="-1" android:valueFrom="1.0" android:valueTo="0.0" /> <objectAnimator android:duration="8000" android:propertyName="strokeColor" android:repeatCount="-1" android:valueFrom="#FF0000FF" android:valueTo="#FF00FF00" /> <objectAnimator android:duration="8000" android:propertyName="strokeWidth" android:repeatCount="-1" android:valueFrom="5" android:valueTo="20" /> <objectAnimator android:duration="8000" android:propertyName="fillColor" android:repeatCount="-1" android:valueFrom="#FFFF0000" android:valueTo="#FF00FF00" /> </set> No newline at end of file tests/VectorDrawableTest/res/anim/trim_path_animation02.xml +1 −1 Original line number Diff line number Diff line Loading @@ -19,7 +19,7 @@ <objectAnimator android:duration="5000" android:propertyName="fill" android:propertyName="fillColor" android:valueFrom="#FF000000" android:valueTo="#FFFF0000"/> Loading Loading
graphics/java/android/graphics/drawable/VectorDrawable.java +8 −8 Original line number Diff line number Diff line Loading @@ -1456,12 +1456,12 @@ public class VectorDrawable extends Drawable { /* Setters and Getters, used by animator from AnimatedVectorDrawable. */ @SuppressWarnings("unused") int getStroke() { int getStrokeColor() { return mStrokeColor; } @SuppressWarnings("unused") void setStroke(int strokeColor) { void setStrokeColor(int strokeColor) { mStrokeColor = strokeColor; } Loading @@ -1476,32 +1476,32 @@ public class VectorDrawable extends Drawable { } @SuppressWarnings("unused") float getstrokeAlpha() { float getStrokeAlpha() { return mStrokeAlpha; } @SuppressWarnings("unused") void setstrokeAlpha(float strokeAlpha) { void setStrokeAlpha(float strokeAlpha) { mStrokeAlpha = strokeAlpha; } @SuppressWarnings("unused") int getFill() { int getFillColor() { return mFillColor; } @SuppressWarnings("unused") void setFill(int fillColor) { void setFillColor(int fillColor) { mFillColor = fillColor; } @SuppressWarnings("unused") float getfillAlpha() { float getFillAlpha() { return mFillAlpha; } @SuppressWarnings("unused") void setfillAlpha(float fillAlpha) { void setFillAlpha(float fillAlpha) { mFillAlpha = fillAlpha; } Loading
tests/VectorDrawableTest/res/anim/animation_favorite.xml +30 −0 Original line number Diff line number Diff line Loading @@ -25,5 +25,35 @@ android:valueFrom="@string/round_box" android:valueTo="@string/heart" android:valueType="pathType" /> <objectAnimator android:duration="8000" android:propertyName="fillAlpha" android:repeatCount="-1" android:valueFrom="1.0" android:valueTo="0.0" /> <objectAnimator android:duration="8000" android:propertyName="strokeAlpha" android:repeatCount="-1" android:valueFrom="1.0" android:valueTo="0.0" /> <objectAnimator android:duration="8000" android:propertyName="strokeColor" android:repeatCount="-1" android:valueFrom="#FF0000FF" android:valueTo="#FF00FF00" /> <objectAnimator android:duration="8000" android:propertyName="strokeWidth" android:repeatCount="-1" android:valueFrom="5" android:valueTo="20" /> <objectAnimator android:duration="8000" android:propertyName="fillColor" android:repeatCount="-1" android:valueFrom="#FFFF0000" android:valueTo="#FF00FF00" /> </set> No newline at end of file
tests/VectorDrawableTest/res/anim/trim_path_animation02.xml +1 −1 Original line number Diff line number Diff line Loading @@ -19,7 +19,7 @@ <objectAnimator android:duration="5000" android:propertyName="fill" android:propertyName="fillColor" android:valueFrom="#FF000000" android:valueTo="#FFFF0000"/> Loading