Wednesday, 2 October 2013

Wait for Android animation to finish

Wait for Android animation to finish

I was wondering if anyone could help me out, I've been looking everywhere
for usefull help, but found nothing. I have four View elements (Buttons),
and I need to animate them, in random order, one after the other. I've
tried waiting for Animation.hasEnded(), that just freezes the entire app.
Also I tried waiting for an AnimationListener to change a boolean from
onAnimationEnd(), but that also froze the app. Both Thread.sleep() and
SystemClock.sleep() for waiting gave the same result. Please, can someone
help me?

No comments:

Post a Comment