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 update · AndroidLu/Coder@630548f

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • app/src/main
    • java/com/coder/guoy/recyclerview/ui
      • PlayAnimateVectorDrawables.java
    • res
      • animator
        • animator_eye_left_to_happy.xml
        • animator_eye_left_to_sad.xml
        • animator_eye_right_to_happy.xml
        • animator_eye_right_to_sad.xml
        • animator_heart_line.xml
        • animator_motorcycle_show.xml
        • animator_mouth_smile_to_happy.xml
        • animator_mouth_smile_to_sad.xml
        • animator_red_heart_colorempty.xml
        • animator_red_heart_colorfull.xml
        • animator_refresh_rote.xml
      • drawable
        • animated_motorcycle_show.xml
        • animated_refresh_rote.xml
        • vector_autorenew_black_24dp.xml
        • vector_bonc.xml
        • vector_motorcycle_black_24dp.xml
      • layout
        • activity_play_animate_vector_drawables.xml
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎app/src/main/java/com/coder/guoy/recyclerview/ui/PlayAnimateVectorDrawables.java‎

Copy file name to clipboardExpand all lines: app/src/main/java/com/coder/guoy/recyclerview/ui/PlayAnimateVectorDrawables.java
+10Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import com.coder.guoy.recyclerview.R;
1111
import com.coder.guoy.recyclerview.base.MvvmBaseActivity;
1212
import com.coder.guoy.recyclerview.databinding.ActivityPlayAnimateVectorDrawablesBinding;
13+
import com.coder.guoy.recyclerview.utils.ToastUtil;
1314

1415
/**
1516
* @Version:v1.0
@@ -30,6 +31,8 @@ protected void onCreate(Bundle savedInstanceState) {
3031
bindingView.btnSuprise.setOnClickListener(this);
3132
bindingView.imageSmile.setOnClickListener(this);
3233
bindingView.imageRedheart.setOnClickListener(this);
34+
bindingView.imageMoto.setOnClickListener(this);
35+
bindingView.imageRotate.setOnClickListener(this);
3336
}
3437

3538
@Override
@@ -54,6 +57,13 @@ public void onClick(View v) {
5457
VectorDrawableClick(R.drawable.animated_red_heartfull, R.drawable.animated_red_heartempty,
5558
bindingView.imageRedheart);
5659
break;
60+
case R.id.image_moto:
61+
((AnimatedVectorDrawable) bindingView.imageMoto.getDrawable()).start();
62+
break;
63+
case R.id.image_rotate:
64+
ToastUtil.show("rotate");
65+
((AnimatedVectorDrawable) bindingView.imageRotate.getDrawable()).start();
66+
break;
5767
}
5868
}
5969

Collapse file

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

Copy file name to clipboard
+10-8Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<?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-
</objectAnimator>
2+
<set xmlns:android="http://schemas.android.com/apk/res/android">
3+
<objectAnimator
4+
android:duration="1000"
5+
android:interpolator="@android:anim/accelerate_interpolator"
6+
android:propertyName="pathData"
7+
android:valueFrom="@string/path_left_eye_sad"
8+
android:valueTo="@string/path_left_eye_happy"
9+
android:valueType="pathType">
10+
</objectAnimator>
11+
</set>
Collapse file

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

Copy file name to clipboard
+10-8Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<?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:valueTo="@string/path_left_eye_sad"
7-
android:valueFrom="@string/path_left_eye_happy"
8-
android:valueType="pathType">
9-
</objectAnimator>
2+
<set xmlns:android="http://schemas.android.com/apk/res/android">
3+
<objectAnimator
4+
android:duration="1000"
5+
android:interpolator="@android:anim/accelerate_interpolator"
6+
android:propertyName="pathData"
7+
android:valueFrom="@string/path_left_eye_happy"
8+
android:valueTo="@string/path_left_eye_sad"
9+
android:valueType="pathType">
10+
</objectAnimator>
11+
</set>
Collapse file

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

Copy file name to clipboard
+9-7Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<?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"/>
2+
<set xmlns:android="http://schemas.android.com/apk/res/android">
3+
<objectAnimator
4+
android:duration="1000"
5+
android:interpolator="@android:anim/accelerate_interpolator"
6+
android:propertyName="pathData"
7+
android:valueFrom="@string/path_right_eye_sad"
8+
android:valueTo="@string/path_right_eye_happy"
9+
android:valueType="pathType"/>
10+
</set>
911

Collapse file

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

Copy file name to clipboard
+9-7Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<?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:valueTo="@string/path_right_eye_sad"
7-
android:valueFrom="@string/path_right_eye_happy"
8-
android:valueType="pathType"/>
2+
<set xmlns:android="http://schemas.android.com/apk/res/android">
3+
<objectAnimator
4+
android:duration="1000"
5+
android:interpolator="@android:anim/accelerate_interpolator"
6+
android:propertyName="pathData"
7+
android:valueFrom="@string/path_right_eye_happy"
8+
android:valueTo="@string/path_right_eye_sad"
9+
android:valueType="pathType"/>
10+
</set>
911

Collapse file

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

Copy file name to clipboard
+9-7Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<objectAnimator xmlns:android="http://schemas.android.com/apk/res/android"
3-
android:duration="3000"
4-
android:interpolator="@android:anim/decelerate_interpolator"
5-
android:propertyName="trimPathEnd"
6-
android:valueFrom="0"
7-
android:valueTo="1"
8-
android:valueType="floatType"/>
2+
<set xmlns:android="http://schemas.android.com/apk/res/android">
3+
<objectAnimator
4+
android:duration="3000"
5+
android:interpolator="@android:anim/decelerate_interpolator"
6+
android:propertyName="trimPathEnd"
7+
android:valueFrom="0"
8+
android:valueTo="1"
9+
android:valueType="floatType"/>
10+
</set>
Collapse file

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

Copy file name to clipboard
+11Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<set xmlns:android="http://schemas.android.com/apk/res/android">
3+
<objectAnimator
4+
android:duration="300"
5+
android:propertyName="fillColor"
6+
android:repeatCount="infinite"
7+
android:repeatMode="reverse"
8+
android:valueFrom="#FF000000"
9+
android:valueTo="@color/red"
10+
android:valueType="colorType"/>
11+
</set>
Collapse file

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

Copy file name to clipboard
+9-8Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<?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_face_mouth_sad"
7-
android:valueTo="@string/path_face_mouth_happy"
8-
android:valueType="pathType"/>
9-
2+
<set xmlns:android="http://schemas.android.com/apk/res/android">
3+
<objectAnimator
4+
android:duration="1000"
5+
android:interpolator="@android:anim/accelerate_interpolator"
6+
android:propertyName="pathData"
7+
android:valueFrom="@string/path_face_mouth_sad"
8+
android:valueTo="@string/path_face_mouth_happy"
9+
android:valueType="pathType"/>
10+
</set>
Collapse file

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

Copy file name to clipboard
+9-8Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<?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_face_mouth_happy"
7-
android:valueTo="@string/path_face_mouth_sad"
8-
android:valueType="pathType"/>
9-
2+
<set xmlns:android="http://schemas.android.com/apk/res/android">
3+
<objectAnimator
4+
android:duration="1000"
5+
android:interpolator="@android:anim/accelerate_interpolator"
6+
android:propertyName="pathData"
7+
android:valueFrom="@string/path_face_mouth_happy"
8+
android:valueTo="@string/path_face_mouth_sad"
9+
android:valueType="pathType"/>
10+
</set>
Collapse file

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

Copy file name to clipboard
+8-6Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<objectAnimator xmlns:android="http://schemas.android.com/apk/res/android"
3-
android:duration="1000"
4-
android:propertyName="fillColor"
5-
android:valueFrom="@color/red"
6-
android:valueTo="@color/colorWrite"
7-
android:valueType="colorType"/>
2+
<set xmlns:android="http://schemas.android.com/apk/res/android">
3+
<objectAnimator
4+
android:duration="1000"
5+
android:propertyName="fillColor"
6+
android:valueFrom="@color/red"
7+
android:valueTo="@color/colorWrite"
8+
android:valueType="colorType"/>
9+
</set>

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.