Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. // Rise Animation
  2. clapCountLayout
  3. .animate()
  4. .translationYBy(-130)
  5. .scaleX(1.2f)
  6. .scaleY(1.2f)
  7. .setDuration(225)
  8. .alpha(1)
  9. .withEndAction(new Runnable() {
  10. @Override
  11. public void run() {
  12.  
  13. //Shrink the clap count layout back to normal
  14. clapCountLayout
  15. .animate()
  16. .setDuration(60) // Shrinking is comparatively faster than rise, so 60ms would be enough
  17. .scaleX(1f) // Back to 100% size
  18. .scaleY(1f) // Back to 100% size
  19. .alpha(1) // Just to be on safer side, explicitly setting alpha as 1f
  20. .start();
  21.  
  22. }
  23. })
  24. .start();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement