Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Rise Animation
- clapCountLayout
- .animate()
- .translationYBy(-130)
- .scaleX(1.2f)
- .scaleY(1.2f)
- .setDuration(225)
- .alpha(1)
- .withEndAction(new Runnable() {
- @Override
- public void run() {
- //Shrink the clap count layout back to normal
- clapCountLayout
- .animate()
- .setDuration(60) // Shrinking is comparatively faster than rise, so 60ms would be enough
- .scaleX(1f) // Back to 100% size
- .scaleY(1f) // Back to 100% size
- .alpha(1) // Just to be on safer side, explicitly setting alpha as 1f
- .start();
- }
- })
- .start();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement