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 — 转场动画修改 · java02014/Coder@a6504f9

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • app/src/main/java/com/coder/guoy/recyclerview/ui
    • PlayActivityTransitions.java
    • PlayRevealEffect.java
    • PlayStatusBar.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: app/src/main/java/com/coder/guoy/recyclerview/ui/PlayActivityTransitions.java
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ public void onClick(View v) {
4343
finish();
4444
break;
4545
case R.id.layout_go:
46-
Intent intent = new Intent(PlayActivityTransitions.this, PlayStatusBar.class);
46+
Intent intent = new Intent(PlayActivityTransitions.this,
47+
PlayStatusBar.class);
4748
Bundle options = ActivityOptions.makeSceneTransitionAnimation(
4849
this, imageView, "shareimage").toBundle();
4950
startActivity(intent, options);
Collapse file

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

Copy file name to clipboardExpand all lines: app/src/main/java/com/coder/guoy/recyclerview/ui/PlayRevealEffect.java
+5-6Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ public class PlayRevealEffect extends MvvmBaseActivity<ActivityPlayRevealEffectB
2020

2121
private boolean isFirst = true;
2222
private Animator animator;
23-
private int width;
24-
private int height;
23+
private float width;
24+
private float height;
2525

2626
@Override
2727
protected void onCreate(Bundle savedInstanceState) {
@@ -47,10 +47,9 @@ public void onClick(View v) {
4747
switch (v.getId()) {
4848
case R.id.btn_revealeffect:
4949
if (isFirst) {
50-
animator = ViewAnimationUtils.createCircularReveal(
51-
bindingView.viewRevealeffect,
52-
width / 2,
53-
height / 2,
50+
animator = ViewAnimationUtils.createCircularReveal(bindingView.viewRevealeffect,
51+
(int)(width / 2),
52+
(int) (height / 2),
5453
0,
5554
height
5655
);
Collapse file

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

Copy file name to clipboardExpand all lines: app/src/main/java/com/coder/guoy/recyclerview/ui/PlayStatusBar.java
-14Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
import android.os.Bundle;
66
import android.support.v7.app.AppCompatActivity;
77
import android.view.View;
8-
import android.view.animation.AlphaAnimation;
9-
import android.view.animation.LayoutAnimationController;
10-
import android.widget.LinearLayout;
118

129
import com.coder.guoy.recyclerview.R;
1310

@@ -31,16 +28,5 @@ protected void onCreate(Bundle savedInstanceState) {
3128
decorView.setSystemUiVisibility(option);
3229
getWindow().setStatusBarColor(Color.TRANSPARENT);
3330
}
34-
setLayoutAnimation();
35-
}
36-
37-
38-
private void setLayoutAnimation() {
39-
LinearLayout layout = (LinearLayout) findViewById(R.id.activity_play_status_bar);
40-
AlphaAnimation alpha = new AlphaAnimation(0, 1);
41-
alpha.setDuration(300);
42-
LayoutAnimationController controller = new LayoutAnimationController(alpha, 0.3f);
43-
controller.setOrder(LayoutAnimationController.ORDER_NORMAL);
44-
layout.setLayoutAnimation(controller);
4531
}
4632
}

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.