Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ivIcon = findViewById(R.id.ivIcon);
- tvIcon = findViewById(R.id.tvIcon);
- ObjectAnimator scaleX = ObjectAnimator.ofFloat(ivIcon, "scaleX", 1.3F);
- scaleX.setRepeatCount(0);
- scaleX.setDuration(1000);
- ObjectAnimator scaleY = ObjectAnimator.ofFloat(ivIcon, "scaleY", 1.3F);
- scaleY.setRepeatCount(0);
- scaleY.setDuration(1000);
- ObjectAnimator alpha = ObjectAnimator.ofFloat(ivIcon, "alpha", 0F,1F);
- alpha.setRepeatCount(0);
- alpha.setDuration(1000);
- ObjectAnimator scaleX2 = ObjectAnimator.ofFloat(ivIcon, "scaleX", 1F);
- scaleX2.setRepeatCount(0);
- scaleX2.setDuration(1000);
- ObjectAnimator scaleY2 = ObjectAnimator.ofFloat(ivIcon, "scaleY", 1F);
- scaleY2.setRepeatCount(0);
- scaleY2.setDuration(1000);
- ObjectAnimator translationY = ObjectAnimator.ofFloat(tvIcon, "translationY", 0F);
- translationY.setRepeatCount(0);
- translationY.setDuration(1000);
- ObjectAnimator alpha2 = ObjectAnimator.ofFloat(tvIcon, "alpha", 0F,1F);
- alpha2.setRepeatCount(0);
- alpha2.setDuration(1000);
- AnimatorSet set = new AnimatorSet();
- set.play(scaleX2).after(scaleX);
- set.play(scaleY2).after(scaleY);
- set.play(translationY).after(scaleX);
- set.play(alpha2).after(scaleX);
- set.play(scaleX);
- set.play(scaleY);
- set.play(alpha);
- set.start();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement