X Tutup
Skip to content

Commit 92c74b8

Browse files
author
Kaushik Gopal
committed
fix: change tap text animation to simple alpha vs scaling
1 parent 3e0ec1b commit 92c74b8

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

app/src/main/java/com/morihacky/android/rxjava/rxbus/RxBusFrag2.java

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,8 @@ public void call(Object event) {
5656

5757
private void _showTapText() {
5858
_tapEventTxtShow.setVisibility(View.VISIBLE);
59-
_tapEventTxtShow.setScaleX(1f);
60-
_tapEventTxtShow.setScaleY(1f);
61-
62-
ViewCompat.animate(_tapEventTxtShow)
63-
.scaleX(0f)
64-
.scaleY(0f)
65-
.setDuration(400)
66-
/*.withEndAction(new Runnable() {
67-
@Override
68-
public void run() {
69-
_tapEventTxtShow.setVisibility(View.INVISIBLE);
70-
_tapEventTxtShow.setAlpha(1f);
71-
}
72-
})*/;
59+
_tapEventTxtShow.setAlpha(1f);
60+
ViewCompat.animate(_tapEventTxtShow).alphaBy(-1f).setDuration(400);
7361
}
7462

7563
@Override

0 commit comments

Comments
 (0)
X Tutup