Skip to content

Instantly share code, notes, and snippets.

@petedoyle
Created November 13, 2017 21:56
Show Gist options
  • Save petedoyle/409998f898a277b83649d1293403ee77 to your computer and use it in GitHub Desktop.
Save petedoyle/409998f898a277b83649d1293403ee77 to your computer and use it in GitHub Desktop.
<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:width="80dp"
android:height="80dp"
android:viewportHeight="80"
android:viewportWidth="80">
<group android:name="_R_G">
<group
android:name="_R_G_L_1_G"
android:pivotX="0.055"
android:pivotY="-27.945"
android:rotation="360"
android:translateX="39.945"
android:translateY="67.945">
<group
android:name="_R_G_L_1_G_D_0_P_0_G_0_T_0"
android:rotation="0"
android:translateX="0.055"
android:translateY="-27.945">
<path
android:name="_R_G_L_1_G_D_0_P_0"
android:pathData=" M0 -30 C16.56,-30 30,-16.56 30,0 C30,16.56 16.56,30 0,30 C-16.56,30 -30,16.56 -30,0 C-30,-16.56 -16.56,-30 0,-30c "
android:strokeAlpha="1"
android:strokeColor="#a1dc00"
android:strokeLineCap="round"
android:strokeLineJoin="round"
android:strokeWidth="10"
android:trimPathEnd="0"
android:trimPathOffset="0"
android:trimPathStart="0"/>
</group>
</group>
<group
android:name="_R_G_L_0_G"
android:translateX="39.945"
android:translateY="67.945">
<group
android:name="_R_G_L_0_G_D_0_P_0_G_0_T_0"
android:rotation="0"
android:translateX="0.055"
android:translateY="-27.945">
<path
android:name="_R_G_L_0_G_D_0_P_0"
android:pathData=" M0 -30 C16.56,-30 30,-16.56 30,0 C30,16.56 16.56,30 0,30 C-16.56,30 -30,16.56 -30,0 C-30,-16.56 -16.56,-30 0,-30c "
android:strokeAlpha="1"
android:strokeColor="#66dbff"
android:strokeLineCap="round"
android:strokeLineJoin="round"
android:strokeWidth="10"
android:trimPathEnd="0"
android:trimPathOffset="0"
android:trimPathStart="0"/>
</group>
</group>
</group>
<group android:name="time_group"/>
</vector>
</aapt:attr>
<target android:name="_R_G_L_1_G_D_0_P_0">
<aapt:attr name="android:animation">
<set android:ordering="together">
<objectAnimator
android:duration="300"
android:propertyName="trimPathEnd"
android:startOffset="0"
android:valueFrom="0"
android:valueTo="0"
android:valueType="floatType">
<aapt:attr name="android:interpolator">
<pathInterpolator android:pathData="M 0.0,0.0 c0.333,0 0.667,1 1.0,1.0"/>
</aapt:attr>
</objectAnimator>
<objectAnimator
android:duration="667"
android:propertyName="trimPathEnd"
android:startOffset="300"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType">
<aapt:attr name="android:interpolator">
<pathInterpolator android:pathData="M 0.0,0.0 c0.333,0 0.667,1 1.0,1.0"/>
</aapt:attr>
</objectAnimator>
</set>
</aapt:attr>
</target>
<target android:name="_R_G_L_0_G_D_0_P_0">
<aapt:attr name="android:animation">
<set android:ordering="together">
<objectAnimator
android:duration="868"
android:propertyName="trimPathStart"
android:startOffset="0"
android:valueFrom="0"
android:valueTo="0"
android:valueType="floatType">
<aapt:attr name="android:interpolator">
<pathInterpolator android:pathData="M 0.0,0.0 c0.333,0 0.667,1 1.0,1.0"/>
</aapt:attr>
</objectAnimator>
<objectAnimator
android:duration="667"
android:propertyName="trimPathStart"
android:startOffset="868"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType">
<aapt:attr name="android:interpolator">
<pathInterpolator android:pathData="M 0.0,0.0 c0.333,0 0.667,1 1.0,1.0"/>
</aapt:attr>
</objectAnimator>
</set>
</aapt:attr>
</target>
<target android:name="_R_G_L_0_G_D_0_P_0">
<aapt:attr name="android:animation">
<set android:ordering="together">
<objectAnimator
android:duration="1201"
android:propertyName="trimPathEnd"
android:startOffset="0"
android:valueFrom="0"
android:valueTo="0"
android:valueType="floatType">
<aapt:attr name="android:interpolator">
<pathInterpolator android:pathData="M 0.0,0.0 c0.333,0 0.667,1 1.0,1.0"/>
</aapt:attr>
</objectAnimator>
</set>
</aapt:attr>
</target>
<target android:name="_R_G_L_0_G">
<aapt:attr name="android:animation">
<set android:ordering="together">
<objectAnimator
android:duration="0"
android:propertyName="scaleX"
android:startOffset="868"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType"/>
</set>
</aapt:attr>
</target>
<target android:name="time_group">
<aapt:attr name="android:animation">
<set android:ordering="together">
<objectAnimator
android:duration="1835"
android:propertyName="translateX"
android:startOffset="0"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType"/>
</set>
</aapt:attr>
</target>
</animated-vector>
<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:width="80dp"
android:height="80dp"
android:viewportHeight="80"
android:viewportWidth="80">
<group android:name="_R_G">
<group
android:name="_R_G_L_1_G"
android:pivotX="0.055"
android:pivotY="-27.945"
android:rotation="360"
android:translateX="39.945"
android:translateY="67.945">
<group
android:name="_R_G_L_1_G_D_0_P_0_G_0_T_0"
android:rotation="0"
android:translateX="0.055"
android:translateY="-27.945">
<path
android:name="_R_G_L_1_G_D_0_P_0"
android:pathData=" M0 -30 C16.56,-30 30,-16.56 30,0 C30,16.56 16.56,30 0,30 C-16.56,30 -30,16.56 -30,0 C-30,-16.56 -16.56,-30 0,-30c "
android:strokeAlpha="1"
android:strokeColor="#a1dc00"
android:strokeLineCap="round"
android:strokeLineJoin="round"
android:strokeWidth="10"
android:trimPathEnd="0"
android:trimPathOffset="0"
android:trimPathStart="0"/>
</group>
</group>
<group
android:name="_R_G_L_0_G"
android:translateX="39.945"
android:translateY="67.945">
<group
android:name="_R_G_L_0_G_D_0_P_0_G_0_T_0"
android:rotation="0"
android:translateX="0.055"
android:translateY="-27.945">
<path
android:name="_R_G_L_0_G_D_0_P_0"
android:pathData=" M0 -30 C16.56,-30 30,-16.56 30,0 C30,16.56 16.56,30 0,30 C-16.56,30 -30,16.56 -30,0 C-30,-16.56 -16.56,-30 0,-30c "
android:strokeAlpha="1"
android:strokeColor="#66dbff"
android:strokeLineCap="round"
android:strokeLineJoin="round"
android:strokeWidth="10"
android:trimPathEnd="0"
android:trimPathOffset="0"
android:trimPathStart="0"/>
</group>
</group>
</group>
<group android:name="time_group"/>
</vector>
</aapt:attr>
<target android:name="_R_G_L_1_G_D_0_P_0">
<aapt:attr name="android:animation">
<set android:ordering="together">
<objectAnimator
android:duration="300"
android:propertyName="trimPathEnd"
android:startOffset="0"
android:valueFrom="0"
android:valueTo="0"
android:valueType="floatType">
</objectAnimator>
<objectAnimator
android:duration="667"
android:propertyName="trimPathEnd"
android:startOffset="300"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType">
</objectAnimator>
</set>
</aapt:attr>
</target>
<target android:name="_R_G_L_0_G_D_0_P_0">
<aapt:attr name="android:animation">
<set android:ordering="together">
<objectAnimator
android:duration="868"
android:propertyName="trimPathStart"
android:startOffset="0"
android:valueFrom="0"
android:valueTo="0"
android:valueType="floatType">
</objectAnimator>
<objectAnimator
android:duration="667"
android:propertyName="trimPathStart"
android:startOffset="868"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType">
</objectAnimator>
</set>
</aapt:attr>
</target>
<target android:name="_R_G_L_0_G_D_0_P_0">
<aapt:attr name="android:animation">
<set android:ordering="together">
<objectAnimator
android:duration="1201"
android:propertyName="trimPathEnd"
android:startOffset="0"
android:valueFrom="0"
android:valueTo="0"
android:valueType="floatType">
</objectAnimator>
</set>
</aapt:attr>
</target>
<target android:name="_R_G_L_0_G">
<aapt:attr name="android:animation">
<set android:ordering="together">
<objectAnimator
android:duration="0"
android:propertyName="scaleX"
android:startOffset="868"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType"/>
</set>
</aapt:attr>
</target>
<target android:name="time_group">
<aapt:attr name="android:animation">
<set android:ordering="together">
<objectAnimator
android:duration="1835"
android:propertyName="translateX"
android:startOffset="0"
android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType"/>
</set>
</aapt:attr>
</target>
</animated-vector>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment