Created
September 29, 2016 21:53
-
-
Save ArthurNagy/8cf30eca3113882fd0eaaba01bb923f9 to your computer and use it in GitHub Desktop.
plus to checkmark and checkmark to plus animated vector drawables, paths are not exactly material icons approved :D
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?><!--suppress AndroidDomInspection --> | |
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:aapt="http://schemas.android.com/aapt" | |
xmlns:tools="http://schemas.android.com/tools" | |
tools:ignore="MissingPrefix,NewApi" | |
tools:targetApi="lollipop"> | |
<aapt:attr name="android:drawable"> | |
<vector | |
android:width="24dp" | |
android:height="24dp" | |
android:viewportHeight="24" | |
android:viewportWidth="24"> | |
<path | |
android:name="root" | |
android:pathData="M11.5,2 L11.5,11.5 L2,11.5 L19.5,11.5 M11.5,11.5 L11.5,19.5" | |
android:strokeColor="#FF000000" | |
android:strokeLineCap="square" | |
android:strokeWidth="2" /> | |
</vector> | |
</aapt:attr> | |
<target android:name="root"> | |
<aapt:attr name="android:animation"> | |
<objectAnimator | |
android:duration="300" | |
android:interpolator="@android:interpolator/fast_out_slow_in" | |
android:propertyName="pathData" | |
android:valueFrom="M11.5,2 L11.5,11.5 L2,11.5 L19.5,11.5 M11.5,11.5 L11.5,19.5" | |
android:valueTo="M2,10.5 L6.5,15.5 L15.5,6.5 L19.5,2.5 M19.5,2.5 L15.5,6.5" | |
android:valueType="pathType" | |
tools:targetApi="lollipop" /> | |
</aapt:attr> | |
</target> | |
</animated-vector> |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?><!--suppress AndroidDomInspection --> | |
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:aapt="http://schemas.android.com/aapt" | |
xmlns:tools="http://schemas.android.com/tools" | |
tools:ignore="MissingPrefix,NewApi" | |
tools:targetApi="lollipop"> | |
<aapt:attr name="android:drawable"> | |
<vector | |
android:width="24dp" | |
android:height="24dp" | |
android:viewportHeight="24" | |
android:viewportWidth="24"> | |
<path | |
android:name="root" | |
android:pathData="M2,10.5 L6.5,15.5 L15.5,6.5 L19.5,2.5 M19.5,2.5 L15.5,6.5" | |
android:strokeColor="#FF000000" | |
android:strokeLineCap="square" | |
android:strokeWidth="2" /> | |
</vector> | |
</aapt:attr> | |
<target android:name="root"> | |
<aapt:attr name="android:animation"> | |
<objectAnimator | |
android:duration="300" | |
android:interpolator="@android:interpolator/fast_out_slow_in" | |
android:propertyName="pathData" | |
android:valueFrom="M2,10.5 L6.5,15.5 L15.5,6.5 L19.5,2.5 M19.5,2.5 L15.5,6.5" | |
android:valueTo="M11.5,2 L11.5,11.5 L2,11.5 L19.5,11.5 M11.5,11.5 L11.5,19.5" | |
android:valueType="pathType" | |
tools:targetApi="lollipop" /> | |
</aapt:attr> | |
</target> | |
</animated-vector> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment