GeezerVison is showing github.com — animated vector drawable add · java02014/Coder@3b465bc
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboard +9Lines changed: 9 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +<?xml version="1.0" encoding="utf-8"?> | | 2 | +<objectAnimator xmlns:android="http://schemas.android.com/apk/res/android" | | 3 | + android:duration="1000" | | 4 | + android:interpolator="@android:anim/accelerate_interpolator" | | 5 | + android:propertyName="pathData" | | 6 | + android:valueFrom="@string/path_left_eye_sad" | | 7 | + android:valueTo="@string/path_left_eye_happy" | | 8 | + android:valueType="pathType"/> | | 9 | + |
Collapse file Copy file name to clipboard +9Lines changed: 9 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +<?xml version="1.0" encoding="utf-8"?> | | 2 | +<objectAnimator xmlns:android="http://schemas.android.com/apk/res/android" | | 3 | + android:duration="1000" | | 4 | + android:interpolator="@android:anim/accelerate_interpolator" | | 5 | + android:propertyName="pathData" | | 6 | + android:valueFrom="@string/path_right_eye_sad" | | 7 | + android:valueTo="@string/path_right_eye_happy" | | 8 | + android:valueType="pathType"/> | | 9 | + |
Collapse file Copy file name to clipboardExpand all lines: app/src/main/res/drawable/animated_smile.xml +8Lines changed: 8 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | <?xml version="1.0" encoding="utf-8"?> | 2 | 2 | <animated-vector xmlns:android="http://schemas.android.com/apk/res/android" | 3 | 3 | android:drawable="@drawable/vector_smile"> | | 4 | + | | 5 | + <target | | 6 | + android:name="eye_left" | | 7 | + android:animation="@animator/eye_left"/> | | 8 | + <target | | 9 | + android:name="eye_right" | | 10 | + android:animation="@animator/eye_right"/> | | 11 | + | 4 | 12 | <target | 5 | 13 | android:name="smile" | 6 | 14 | android:animation="@animator/smile"/> | |
Collapse file Copy file name to clipboardExpand all lines: app/src/main/res/drawable/vector_smile.xml +13-6Lines changed: 13 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 7 | 7 |
| 8 | 8 | <path | 9 | 9 | android:fillColor="@color/yello" | 10 | | - android:pathData="m 50,50 m -48 ,0 a 48,48 0 1,0 96,0 a 48,48 0 1,0 -96,0"/> | | 10 | + android:pathData="M 50,50 m -48 ,0 a 48,48 0 1,0 96,0 a 48,48 0 1,0 -96,0"/> | 11 | 11 |
| 12 | 12 | <path | 13 | | - android:fillColor="@color/colorBlack" | 14 | | - android:pathData="m 35 ,40 m -7,0 a 7,7 0 1,0 14,0 a 7,7 0 1,0 -14 ,0"/> | | 13 | + android:name="eye_left" | | 14 | + android:pathData="M 28,40 Q 36,50 43,40" | | 15 | + android:strokeColor="@color/colorBlack" | | 16 | + android:strokeLineCap="round" | | 17 | + android:strokeWidth="4"/> | | 18 | + | 15 | 19 | <path | 16 | | - android:fillColor="@color/colorBlack" | 17 | | - android:pathData="m 65 ,40 m -7,0 a 7,7 0 1,0 14,0 a 7,7 0 1,0 -14 ,0"/> | | 20 | + android:name="eye_right" | | 21 | + android:pathData="M 58,40 Q 66,50 73,40" | | 22 | + android:strokeColor="@color/colorBlack" | | 23 | + android:strokeLineCap="round" | | 24 | + android:strokeWidth="4"/> | 18 | 25 |
| 19 | 26 | <path | 20 | 27 | android:name="smile" | 21 | | - android:pathData="m 30,75 Q 50,55 70,75" | | 28 | + android:pathData="@string/path_face_mouth_sad" | 22 | 29 | android:strokeColor="@color/colorBlack" | 23 | 30 | android:strokeLineCap="round" | 24 | 31 | android:strokeWidth="4"/> | |
Collapse file Copy file name to clipboardExpand all lines: app/src/main/res/values/strings.xml +9-8Lines changed: 9 additions & 8 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 21 | 21 | <string name="FAILE">加载失败,点击重试</string> | 22 | 22 | <string name="LOADING">努力加载中...</string> | 23 | 23 |
| 24 | | - <string name="path_face_mouth_sad"> | 25 | | - M 30,75 | 26 | | - Q 50,55 70,75 | 27 | | - </string> | 28 | | - <string name="path_face_mouth_happy"> | 29 | | - M 30,65 | 30 | | - Q 50,85 70,65 | 31 | | - </string> | | 24 | + <string name="path_face_mouth_sad">M 30,75 Q 50,55 70,75 </string> | | 25 | + <string name="path_face_mouth_happy">M 30,65 Q 50,85 70,65 </string> | | 26 | + <string name="path_face_left_eye_black">M 35 ,40 m -7,0 a 7,7 0 1,0 14,0 a 7,7 0 1,0 -14 ,0</string> | | 27 | + <string name="path_face_right_eye_black">M 65 ,40 m -7,0 a 7,7 0 1,0 14,0 a 7,7 0 1,0 -14 ,0</string> | | 28 | + <string name="path_right_eye_sad">M 58,40 Q 66,50 73,40</string> | | 29 | + <string name="path_left_eye_sad">M 28,40 Q 36,50 43,40</string> | | 30 | + <string name="path_right_eye_happy">M 58,40 Q 66,30 73,40</string> | | 31 | + <string name="path_left_eye_happy">M 28,40 Q 36,30 43,40</string> | | 32 | + | 32 | 33 | </resources> |
|