Created
May 28, 2019 03:41
-
-
Save alexjlockwood/55a1b697f543cc19bd2a867f9df70d88 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<animated-vector | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:aapt="http://schemas.android.com/aapt"> | |
<aapt:attr name="android:drawable"> | |
<vector | |
android:name="heartbreak" | |
android:width="56dp" | |
android:height="56dp" | |
android:viewportWidth="56" | |
android:viewportHeight="56"> | |
<group | |
android:name="broken_heart_left_group" | |
android:pivotX="28" | |
android:pivotY="37.3"> | |
<path | |
android:name="broken_heart_left" | |
android:pathData="M 28.031 21.054 C 28.02 21.066 28.01 21.078 28 21.09 C 26.91 19.81 25.24 19 23.5 19 C 20.42 19 18 21.42 18 24.5 C 18 28.28 21.4 31.36 26.55 36.03 L 28 37.35 L 28.002 37.348 L 27.781 36.988 L 28.489 36.073 L 27.506 34.764 L 28.782 33.027 L 26.944 31.008 L 29.149 28.725 L 27.117 27.143 L 29.149 25.018 L 26.488 22.977 L 28.031 21.054 L 28.031 21.054 Z" | |
android:fillColor="#000"/> | |
</group> | |
<group | |
android:name="broken_heart_right_group" | |
android:pivotX="28" | |
android:pivotY="37.3"> | |
<path | |
android:name="broken_heart_right" | |
android:pathData="M 28.031 21.054 C 28.169 20.895 28.316 20.743 28.471 20.599 L 28.915 20.226 C 29.926 19.457 31.193 19 32.5 19 C 35.58 19 38 21.42 38 24.5 C 38 28.28 34.6 31.36 29.45 36.04 L 28.002 37.348 L 27.781 36.988 L 28.489 36.073 L 27.506 34.764 L 28.782 33.027 L 26.944 31.008 L 29.149 28.725 L 27.117 27.143 L 29.149 25.018 L 26.488 22.977 L 28.031 21.054 L 28.031 21.054 Z" | |
android:fillColor="#000"/> | |
</group> | |
<path | |
android:name="heart_stroke_left" | |
android:pathData="M 28.719 38.296 L 25.669 35.552 C 21.621 31.793 18.016 28.891 18.016 24.845 C 18.016 21.588 20.631 19.965 23.634 19.965 C 24.999 19.965 26.799 21.181 28.644 23.13" | |
android:strokeColor="#000" | |
android:strokeWidth="2" | |
android:trimPathEnd="0"/> | |
<path | |
android:name="heart_stroke_right" | |
android:pathData="M 27.231 38.294 L 30.765 35.2 C 34.834 31.235 37.752 29.118 38.004 25.084 C 38.168 22.459 35.773 20.035 33.379 20.035 C 30.432 20.035 29.672 21.047 27.231 23.133" | |
android:strokeColor="#000" | |
android:strokeWidth="2" | |
android:trimPathEnd="0"/> | |
<group android:name="filled"> | |
<clip-path | |
android:name="clip" | |
android:pathData="M 18 37 L 38 37 L 38 37 L 18 37 Z"/> | |
<path | |
android:name="fill" | |
android:pathData="M 28 39 L 26.405 37.567 C 20.74 32.471 17 29.109 17 24.995 C 17 21.632 19.657 19 23.05 19 C 24.964 19 26.801 19.883 28 21.272 C 29.199 19.883 31.036 19 32.95 19 C 36.343 19 39 21.632 39 24.995 C 39 29.109 35.26 32.471 29.595 37.567 L 28 39 L 28 39 Z" | |
android:fillColor="#000000"/> | |
</group> | |
</vector> | |
</aapt:attr> | |
<target android:name="broken_heart_left_group"> | |
<aapt:attr name="android:animation"> | |
<objectAnimator | |
android:propertyName="rotation" | |
android:duration="400" | |
android:valueFrom="0" | |
android:valueTo="-20" | |
android:valueType="floatType" | |
android:interpolator="@android:interpolator/linear_out_slow_in"/> | |
</aapt:attr> | |
</target> | |
<target android:name="broken_heart_right_group"> | |
<aapt:attr name="android:animation"> | |
<objectAnimator | |
android:propertyName="rotation" | |
android:duration="400" | |
android:valueFrom="0" | |
android:valueTo="20" | |
android:valueType="floatType" | |
android:interpolator="@android:interpolator/linear_out_slow_in"/> | |
</aapt:attr> | |
</target> | |
<target android:name="broken_heart_left"> | |
<aapt:attr name="android:animation"> | |
<objectAnimator | |
android:propertyName="fillAlpha" | |
android:startOffset="100" | |
android:duration="300" | |
android:valueFrom="1" | |
android:valueTo="0" | |
android:valueType="floatType" | |
android:interpolator="@android:interpolator/linear_out_slow_in"/> | |
</aapt:attr> | |
</target> | |
<target android:name="broken_heart_right"> | |
<aapt:attr name="android:animation"> | |
<objectAnimator | |
android:propertyName="fillAlpha" | |
android:startOffset="100" | |
android:duration="300" | |
android:valueFrom="1" | |
android:valueTo="0" | |
android:valueType="floatType" | |
android:interpolator="@android:interpolator/linear_out_slow_in"/> | |
</aapt:attr> | |
</target> | |
<target android:name="heart_stroke_left"> | |
<aapt:attr name="android:animation"> | |
<objectAnimator | |
android:propertyName="trimPathEnd" | |
android:startOffset="500" | |
android:duration="400" | |
android:valueFrom="0" | |
android:valueTo="1" | |
android:valueType="floatType" | |
android:interpolator="@android:interpolator/fast_out_slow_in"/> | |
</aapt:attr> | |
</target> | |
<target android:name="heart_stroke_right"> | |
<aapt:attr name="android:animation"> | |
<objectAnimator | |
android:propertyName="trimPathEnd" | |
android:startOffset="500" | |
android:duration="400" | |
android:valueFrom="0" | |
android:valueTo="1" | |
android:valueType="floatType" | |
android:interpolator="@android:interpolator/fast_out_slow_in"/> | |
</aapt:attr> | |
</target> | |
<target android:name="clip"> | |
<aapt:attr name="android:animation"> | |
<set> | |
<objectAnimator | |
android:propertyName="pathData" | |
android:startOffset="1160" | |
android:duration="120" | |
android:valueFrom="M 18 26 C 18 26 21 28 24 28 C 27 28 29 25 32 25 C 35 25 38 26 38 26 L 38 38 L 18 38 L 18 26 Z" | |
android:valueTo="M 18 18 C 18 18 24 18 24 18 C 24 18 32 18 32 18 C 32 18 38 18 38 18 L 38 38 L 18 38 L 18 18 Z" | |
android:valueType="pathType" | |
android:interpolator="@android:interpolator/fast_out_linear_in"/> | |
<objectAnimator | |
android:propertyName="pathData" | |
android:startOffset="1000" | |
android:duration="160" | |
android:valueFrom="M 18 38 C 18 38 24 38 24 38 C 24 38 32 38 32 38 C 32 38 38 38 38 38 L 38 38 L 18 38 L 18 38 Z" | |
android:valueTo="M 18 26 C 18 26 21 28 24 28 C 27 28 29 25 32 25 C 35 25 38 26 38 26 L 38 38 L 18 38 L 18 26 Z" | |
android:valueType="pathType" | |
android:interpolator="@android:interpolator/fast_out_linear_in"/> | |
</set> | |
</aapt:attr> | |
</target> | |
<target android:name="heartbreak"> | |
<aapt:attr name="android:animation"> | |
<objectAnimator | |
android:propertyName="alpha" | |
android:startOffset="500" | |
android:duration="400" | |
android:valueFrom="0.4" | |
android:valueTo="1" | |
android:valueType="floatType" | |
android:interpolator="@android:interpolator/fast_out_slow_in"/> | |
</aapt:attr> | |
</target> | |
</animated-vector> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment