I add an AnimatorListenerAdapter
into an ValueAnimator
, but i need to stop the ValueAnimator
while it's running sometime.
I tried ValueAnimator.cancel()
or ValueAnimator.stop()
, they both can stop the animator, but the AnimatorListenerAdapter.onAnimationEnd()
called which is I don't want.
ValueAnimator.pause()
works but it's only above api 19, so i can't use it;
Is there anyway else I can do this?
boolean
field somewhere to inform youronAnimationEnd()
implementation "hey, don't do your normal processing"? – Jameyjami