Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@alexjlockwood
Created November 14, 2018 22:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexjlockwood/a02095517e21baba00c555aaaff6e074 to your computer and use it in GitHub Desktop.
Save alexjlockwood/a02095517e21baba00c555aaaff6e074 to your computer and use it in GitHub Desktop.
This AVD works...???!?
<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:height="300dp"
android:width="300dp"
android:viewportHeight="24"
android:viewportWidth="24">
<clip-path android:name="clip" android:pathData="M 12 12 h 0 v 0 h 0 v 0 z">
<path android:pathData="M 0 0 h 24 v 24 h -24 v -24 z" android:fillColor="#f00"/>
</clip-path>
</vector>
</aapt:attr>
<target android:name="clip">
<aapt:attr name="android:animation">
<objectAnimator
android:propertyName="pathData"
android:duration="2000"
android:valueFrom="M 12 12 h 0 v 0 h 0 v 0 z"
android:valueTo="M 0 0 h 24 v 24 h -24 v -24 z"
android:valueType="pathType"/>
</aapt:attr>
</target>
</animated-vector>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment