Is there a way to listen for animation end in AnimatedVectorDrawables
问题 I have created an AnimatedVectorDrawable, it works pretty well, now I am looking for a way to change the animation or hide the view after it finishes. I was hoping there was a listener but it doesn't look like there is. Can someone help? EDIT So I found a workaround, but not a very elegant way. What I did was create a thread and poll if the animation is running. new Runnable() { public void run() { while(mLoop) { if(mAnimatedVectorDrawable.isRunning()) { Thread.sleep(mPollingInterval); } else