Skip to content

Instantly share code, notes, and snippets.

@romandanylyk
Last active December 13, 2016 20:45
Show Gist options
  • Select an option

  • Save romandanylyk/bc7b91c41fc67d2423a731d94a7fe084 to your computer and use it in GitHub Desktop.

Select an option

Save romandanylyk/bc7b91c41fc67d2423a731d94a7fe084 to your computer and use it in GitHub Desktop.
ValueAnimator animator = ValueAnimator.ofInt(0, 100);
animator.setDuration(1000);
animator.setInterpolator(new DecelerateInterpolator());
animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
public void onAnimationUpdate(ValueAnimator animation) {
int newRadius = (int) animation.getAnimatedValue();
}
});
animator.start();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment