Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 485736ae authored by ztenghui's avatar ztenghui Committed by Android Git Automerger
Browse files

am 2b7813c6: am 065502cb: am 892412af: am 8518c090: Merge "Fix animation on...

am 2b7813c6: am 065502cb: am 892412af: am 8518c090: Merge "Fix animation on the some properties" into lmp-dev

* commit '2b7813c628abb1f5044d2e680c88b4edfdf71660':
  Fix animation on the some properties
parents 18d05f5d b562b375
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -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;
        }

@@ -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;
        }

+30 −0
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@

    <objectAnimator
        android:duration="5000"
        android:propertyName="fill"
        android:propertyName="fillColor"
        android:valueFrom="#FF000000"
        android:valueTo="#FFFF0000"/>