GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — animated vector drawable add · java02014/Coder@3b465bc

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • app/src/main/res
    • animator
      • eye_left.xml
      • eye_right.xml
    • drawable
      • animated_smile.xml
      • vector_smile.xml
    • values
      • strings.xml
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎app/src/main/res/animator/eye_left.xml‎

Copy file name to clipboard
+9Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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

‎app/src/main/res/animator/eye_right.xml‎

Copy file name to clipboard
+9Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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

‎app/src/main/res/drawable/animated_smile.xml‎

Copy file name to clipboardExpand all lines: app/src/main/res/drawable/animated_smile.xml
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android"
33
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+
412
<target
513
android:name="smile"
614
android:animation="@animator/smile"/>
Collapse file

‎app/src/main/res/drawable/vector_smile.xml‎

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 numberDiff line numberDiff line change
@@ -7,18 +7,25 @@
77

88
<path
99
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"/>
1111

1212
<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+
1519
<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"/>
1825

1926
<path
2027
android:name="smile"
21-
android:pathData="m 30,75 Q 50,55 70,75"
28+
android:pathData="@string/path_face_mouth_sad"
2229
android:strokeColor="@color/colorBlack"
2330
android:strokeLineCap="round"
2431
android:strokeWidth="4"/>
Collapse file

‎app/src/main/res/values/strings.xml‎

Copy file name to clipboardExpand all lines: app/src/main/res/values/strings.xml
+9-8Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@
2121
<string name="FAILE">加载失败,点击重试</string>
2222
<string name="LOADING">努力加载中...</string>
2323

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+
3233
</resources>

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.