Skip to content

Instantly share code, notes, and snippets.

@kanytu
Created January 27, 2015 12:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kanytu/0868e15a9d3ace9c4922 to your computer and use it in GitHub Desktop.
Save kanytu/0868e15a9d3ace9c4922 to your computer and use it in GitHub Desktop.
ValueAnimator animator = ValueAnimator.ofObject(new ArgbEvaluator(), 0x7fffffff, 0x00ffffff);
animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
@Override
public void onAnimationUpdate(ValueAnimator animation) {
wrapper.getImageView().setColorFilter((Integer) animation.getAnimatedValue());
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment