anim_history_enter.xml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <animated-vector xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:aapt="http://schemas.android.com/aapt">
  3. <aapt:attr name="android:drawable">
  4. <vector
  5. android:name="history_enter"
  6. android:width="24dp"
  7. android:height="24dp"
  8. android:viewportWidth="24"
  9. android:viewportHeight="24">
  10. <path
  11. android:name="clock"
  12. android:fillColor="#000000"
  13. android:pathData="M 12 8 L 12 13 L 16.28 15.54 L 17 14.33 L 13.5 12.25 L 13.5 8 L 12 8 Z" />
  14. <group
  15. android:name="arrow_head"
  16. android:pivotX="13"
  17. android:pivotY="12">
  18. <path
  19. android:name="arrow"
  20. android:fillColor="#000000"
  21. android:pathData="M 13 3 C 8.03 3 4 7.03 4 12 L 1 12 L 4.89 15.89 L 4.96 16.03 L 9 12 L 6 12 C 6 8.13 9.13 5 13 5 C 16.87 5 20 8.13 20 12 C 20 15.87 16.87 19 13 19 C 11.07 19 9.32 18.21 8.06 16.94 L 6.64 18.36 C 8.27 19.99 10.51 21 13 21 C 17.97 21 22 16.97 22 12 C 22 7.03 17.97 3 13 3 Z M 13 3 Z" />
  22. </group>
  23. </vector>
  24. </aapt:attr>
  25. <target android:name="arrow_head">
  26. <aapt:attr name="android:animation">
  27. <objectAnimator
  28. android:duration="500"
  29. android:interpolator="@android:interpolator/fast_out_slow_in"
  30. android:propertyName="rotation"
  31. android:valueFrom="360"
  32. android:valueTo="0"
  33. android:valueType="floatType" />
  34. </aapt:attr>
  35. </target>
  36. </animated-vector>