-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathavd_play_to_pause.xml
29 lines (29 loc) · 3.67 KB
/
avd_play_to_pause.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<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="vector"
android:width="69dp"
android:height="86dp"
android:viewportWidth="69"
android:viewportHeight="86">
<path
android:name="play"
android:pathData="M 0 2.238 L 0 84.212 C -0.028 84.72 0.129 85.222 0.442 85.624 C 0.754 86.026 1.202 86.301 1.702 86.399 C 2.201 86.497 2.72 86.411 3.161 86.157 L 68.141 45.17 C 68.567 44.886 68.887 44.47 69.051 43.985 C 69.216 43.501 69.216 42.975 69.051 42.491 C 68.887 42.006 68.567 41.59 68.141 41.306 L 3.161 0.319 C 2.724 0.057 2.206 -0.036 1.705 0.058 C 1.204 0.151 0.754 0.424 0.44 0.825 C 0.126 1.227 -0.03 1.729 0 2.238 Z"
android:fillColor="#ffb74d"
android:strokeWidth="1"/>
</vector>
</aapt:attr>
<target android:name="play">
<aapt:attr name="android:animation">
<objectAnimator
android:propertyName="pathData"
android:duration="300"
android:valueFrom="M 0 44.162 L 0 84.212 C -0.028 84.72 0.129 85.222 0.442 85.624 C 0.754 86.026 1.202 86.301 1.702 86.399 C 1.952 86.448 2.206 86.451 2.453 86.41 C 2.7 86.369 2.941 86.284 3.161 86.157 C 13.991 79.326 24.821 72.495 35.651 65.663 C 46.481 58.832 57.311 52.001 68.141 45.17 C 68.567 44.886 68.887 44.47 69.051 43.985 L 60.42 44.007 C 57.542 44.015 54.665 44.022 51.788 44.029 C 48.911 44.037 46.034 44.044 43.157 44.051 C 40.28 44.059 37.403 44.066 34.526 44.074 L 25.894 44.096 C 23.017 44.103 20.14 44.11 17.263 44.118 C 14.386 44.125 11.508 44.133 8.631 44.14 C 5.754 44.147 2.877 44.155 0 44.162 M 0 2.238 L 0 44.162 C 3.288 44.154 6.576 44.145 9.864 44.137 C 13.153 44.128 16.441 44.12 19.729 44.112 C 23.017 44.103 26.305 44.095 29.593 44.086 L 39.458 44.061 L 49.322 44.036 C 52.61 44.027 55.898 44.019 59.187 44.01 C 62.475 44.002 65.763 43.993 69.051 43.985 C 69.216 43.501 69.216 42.975 69.051 42.491 C 68.887 42.006 68.567 41.59 68.141 41.306 C 57.311 34.475 46.481 27.644 35.651 20.813 C 24.821 13.981 13.991 7.15 3.161 0.319 C 2.724 0.057 2.206 -0.036 1.705 0.058 C 1.204 0.151 0.754 0.424 0.44 0.825 C 0.126 1.227 -0.03 1.729 0 2.238 C 0 2.238 0 2.238 0 2.238"
android:valueTo="M 0 2.161 L 0 84.3 C 0.004 84.876 0.237 85.428 0.647 85.833 C 1.057 86.237 1.612 86.463 2.188 86.459 C 7.934 86.459 13.68 86.459 19.426 86.459 C 19.426 86.459 19.426 86.459 19.426 86.459 C 19.808 86.462 20.183 86.364 20.515 86.175 C 20.847 85.987 21.123 85.714 21.316 85.385 C 21.509 85.056 21.612 84.682 21.615 84.3 L 21.615 2.161 C 21.613 1.779 21.51 1.405 21.317 1.075 C 21.124 0.746 20.848 0.473 20.516 0.284 C 20.184 0.095 19.808 -0.003 19.426 0 L 2.188 0 C 1.806 -0.002 1.431 0.096 1.099 0.284 C 0.767 0.473 0.491 0.746 0.298 1.075 C 0.105 1.405 0.002 1.779 0 2.161 M 47.553 2.161 L 47.553 84.298 C 47.555 84.68 47.658 85.054 47.851 85.384 C 48.044 85.713 48.32 85.986 48.652 86.175 C 48.984 86.363 49.359 86.461 49.741 86.459 L 66.979 86.459 L 66.979 86.459 C 67.555 86.463 68.11 86.237 68.52 85.833 C 68.93 85.428 69.163 84.876 69.167 84.3 C 69.167 56.92 69.167 29.541 69.167 2.161 C 69.165 1.779 69.062 1.405 68.869 1.075 C 68.676 0.746 68.4 0.473 68.068 0.284 C 67.736 0.096 67.361 -0.002 66.979 0 C 61.233 0 55.487 0 49.741 0 C 49.359 -0.002 48.984 0.096 48.652 0.284 C 48.32 0.473 48.044 0.746 47.851 1.075 C 47.658 1.405 47.555 1.779 47.553 2.161"
android:valueType="pathType"
android:interpolator="@android:anim/decelerate_interpolator"/>
</aapt:attr>
</target>
</animated-vector>