|
| 1 | +<animated-vector |
| 2 | + xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | + xmlns:aapt="http://schemas.android.com/aapt"> |
| 4 | + <aapt:attr name="android:drawable"> |
| 5 | + <vector |
| 6 | + android:name="vector" |
| 7 | + android:width="128dp" |
| 8 | + android:height="128dp" |
| 9 | + android:viewportWidth="24" |
| 10 | + android:viewportHeight="24"> |
| 11 | + <group |
| 12 | + android:name="group" |
| 13 | + android:pivotX="12" |
| 14 | + android:pivotY="12"> |
| 15 | + <path |
| 16 | + android:name="root" |
| 17 | + android:pathData="M 19 19 L 5 19 L 5 5 L 19 5 M 19 3 L 5 3 C 4.47 3 3.961 3.211 3.586 3.586 C 3.211 3.961 3 4.47 3 5 L 3 19 C 3 19.53 3.211 20.039 3.586 20.414 C 3.961 20.789 4.47 21 5 21 L 19 21 C 19.53 21 20.039 20.789 20.414 20.414 C 20.789 20.039 21 19.53 21 19 L 21 5 C 21 4.47 20.789 3.961 20.414 3.586 C 20.039 3.211 19.53 3 19 3 M 7 9 L 9.31 9 L 9.63 6 L 11.63 6 L 11.31 9 L 13.31 9 L 13.63 6 L 15.63 6 L 15.31 9 L 17 9 L 17 11 L 15.1 11 L 14.9 13 L 17 13 L 17 15 L 14.69 15 L 14.37 18 L 12.37 18 L 12.69 15 L 10.69 15 L 10.37 18 L 8.37 18 L 8.69 15 L 7 15 L 7 13 L 8.9 13 L 9.1 11 L 7 11 L 7 9 M 11.1 11 L 10.9 13 L 12.9 13 L 13.1 11 Z" |
| 18 | + android:fillColor="?colorOnBackground"/> |
| 19 | + </group> |
| 20 | + </vector> |
| 21 | + </aapt:attr> |
| 22 | + <target android:name="root"> |
| 23 | + <aapt:attr name="android:animation"> |
| 24 | + <set> |
| 25 | + <objectAnimator |
| 26 | + android:propertyName="pathData" |
| 27 | + android:duration="1000" |
| 28 | + android:valueFrom="M 19 19 L 5 19 L 5 5 L 19 5 M 19 3 L 5 3 C 4.47 3 3.961 3.211 3.586 3.586 C 3.211 3.961 3 4.47 3 5 L 3 19 C 3 19.53 3.211 20.039 3.586 20.414 C 3.961 20.789 4.47 21 5 21 L 19 21 C 19.53 21 20.039 20.789 20.414 20.414 C 20.789 20.039 21 19.53 21 19 L 21 5 C 21 4.47 20.789 3.961 20.414 3.586 C 20.039 3.211 19.53 3 19 3 M 13.31 9 L 11.31 9 L 11.63 6 L 9.63 6 L 9.31 9 L 7 9 L 7 11 L 9.1 11 L 8.9 13 L 7 13 L 7 15 L 8.69 15 L 8.37 18 L 10.37 18 L 10.69 15 L 12.69 15 L 12.37 18 L 14.37 18 L 14.69 15 L 17 15 L 17 13 L 14.9 13 L 15.1 11 L 17 11 L 17 9 L 15.31 9 L 15.63 6 L 13.63 6 L 13.31 9 M 13.1 11 L 12.9 13 L 10.9 13 L 11.1 11 L 13.1 11" |
| 29 | + android:valueTo="M 19 19 L 5 19 L 5 5 L 19 5 M 19 3 L 5 3 C 4.47 3 3.961 3.211 3.586 3.586 C 3.211 3.961 3 4.47 3 5 L 3 19 C 3 19.53 3.211 20.039 3.586 20.414 C 3.961 20.789 4.47 21 5 21 L 19 21 C 19.53 21 20.039 20.789 20.414 20.414 C 20.789 20.039 21 19.53 21 19 L 21 5 C 21 4.445 20.775 3.945 20.413 3.584 C 20.05 3.223 19.55 3 19 3 M 11 15 L 11 17 L 11.08 17 L 11.16 17 L 11.24 17 L 11.32 17 L 11.4 17 L 11.48 17 L 11.56 17 L 11.64 17 L 11.72 17 L 11.8 17 L 11.88 17 L 11.96 17 L 12.04 17 L 12.12 17 L 12.2 17 L 12.28 17 L 12.36 17 L 12.44 17 L 12.52 17 L 12.6 17 L 12.68 17 L 12.76 17 L 12.84 17 L 12.92 17 L 13 17 L 13 15 L 11 15 M 11 7 L 11 13 L 13 13 L 13 7 L 11 7" |
| 30 | + android:valueType="pathType" |
| 31 | + android:interpolator="@android:interpolator/fast_out_slow_in"/> |
| 32 | + <objectAnimator |
| 33 | + android:propertyName="fillColor" |
| 34 | + android:startOffset="298" |
| 35 | + android:duration="307" |
| 36 | + android:valueFrom="?colorOnBackground" |
| 37 | + android:valueTo="?colorError" |
| 38 | + android:valueType="colorType" |
| 39 | + android:interpolator="@android:interpolator/fast_out_slow_in"/> |
| 40 | + <objectAnimator |
| 41 | + android:propertyName="pathData" |
| 42 | + android:startOffset="1999" |
| 43 | + android:duration="1001" |
| 44 | + android:valueFrom="M 19 19 L 5 19 L 5 5 L 19 5 M 19 3 L 5 3 C 4.47 3 3.961 3.211 3.586 3.586 C 3.211 3.961 3 4.47 3 5 L 3 19 C 3 19.53 3.211 20.039 3.586 20.414 C 3.961 20.789 4.47 21 5 21 L 19 21 C 19.53 21 20.039 20.789 20.414 20.414 C 20.789 20.039 21 19.53 21 19 L 21 5 C 21 4.445 20.775 3.945 20.413 3.584 C 20.05 3.223 19.55 3 19 3 M 11 15 L 11 17 L 11.08 17 L 11.16 17 L 11.24 17 L 11.32 17 L 11.4 17 L 11.48 17 L 11.56 17 L 11.64 17 L 11.72 17 L 11.8 17 L 11.88 17 L 11.96 17 L 12.04 17 L 12.12 17 L 12.2 17 L 12.28 17 L 12.36 17 L 12.44 17 L 12.52 17 L 12.6 17 L 12.68 17 L 12.76 17 L 12.84 17 L 12.92 17 L 13 17 L 13 15 L 11 15 M 11 7 L 11 13 L 13 13 L 13 7 L 11 7" |
| 45 | + android:valueTo="M 19 19 L 5 19 L 5 5 L 19 5 M 19 3 L 5 3 C 4.47 3 3.961 3.211 3.586 3.586 C 3.211 3.961 3 4.47 3 5 L 3 19 C 3 19.53 3.211 20.039 3.586 20.414 C 3.961 20.789 4.47 21 5 21 L 19 21 C 19.53 21 20.039 20.789 20.414 20.414 C 20.789 20.039 21 19.53 21 19 L 21 5 C 21 4.47 20.789 3.961 20.414 3.586 C 20.039 3.211 19.53 3 19 3 M 13.31 9 L 11.31 9 L 11.63 6 L 9.63 6 L 9.31 9 L 7 9 L 7 11 L 9.1 11 L 8.9 13 L 7 13 L 7 15 L 8.69 15 L 8.37 18 L 10.37 18 L 10.69 15 L 12.69 15 L 12.37 18 L 14.37 18 L 14.69 15 L 17 15 L 17 13 L 14.9 13 L 15.1 11 L 17 11 L 17 9 L 15.31 9 L 15.63 6 L 13.63 6 L 13.31 9 M 13.1 11 L 12.9 13 L 10.9 13 L 11.1 11 L 13.1 11" |
| 46 | + android:valueType="pathType" |
| 47 | + android:interpolator="@android:interpolator/fast_out_slow_in"/> |
| 48 | + <objectAnimator |
| 49 | + android:propertyName="fillColor" |
| 50 | + android:startOffset="2300" |
| 51 | + android:duration="307" |
| 52 | + android:valueFrom="?colorError" |
| 53 | + android:valueTo="?colorOnBackground" |
| 54 | + android:valueType="colorType" |
| 55 | + android:interpolator="@android:interpolator/fast_out_slow_in"/> |
| 56 | + </set> |
| 57 | + </aapt:attr> |
| 58 | + </target> |
| 59 | + <target android:name="group"> |
| 60 | + <aapt:attr name="android:animation"> |
| 61 | + <set> |
| 62 | + <objectAnimator |
| 63 | + android:propertyName="rotation" |
| 64 | + android:duration="1000" |
| 65 | + android:valueFrom="0" |
| 66 | + android:valueTo="360" |
| 67 | + android:valueType="floatType" |
| 68 | + android:interpolator="@android:interpolator/fast_out_slow_in"/> |
| 69 | + <objectAnimator |
| 70 | + android:propertyName="rotation" |
| 71 | + android:startOffset="1803" |
| 72 | + android:duration="1176" |
| 73 | + android:valueFrom="360" |
| 74 | + android:valueTo="720" |
| 75 | + android:valueType="floatType" |
| 76 | + android:interpolator="@android:interpolator/fast_out_slow_in"/> |
| 77 | + </set> |
| 78 | + </aapt:attr> |
| 79 | + </target> |
| 80 | +</animated-vector> |
0 commit comments