Skip to content

Instantly share code, notes, and snippets.

@romandanylyk
Last active December 13, 2017 12:42
Show Gist options
  • Save romandanylyk/bab99a54ae713050dcdfcf052add10cf to your computer and use it in GitHub Desktop.
Save romandanylyk/bab99a54ae713050dcdfcf052add10cf to your computer and use it in GitHub Desktop.
ValueAnimator animator = ValueAnimator.ofInt(0, 100);
animator.setDuration(2000);
animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
@Override
public void onAnimationUpdate(ValueAnimator animation) {
int value = (int) animation.getAnimatedValue();
}
});
animator.start();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment