title: Is there a way to listen for animation end in AnimatedVectorDrawables
body: <p>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?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>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.</p>
  
  <pre><code>new Runnable() {
      public void run() {
          while(mLoop) {
              if(mAnimatedVectorDrawable.isRunning()) {
                  Thread.sleep(mPollingInterval);
              } else {
                  mLoop = false;
                  // TODO what ever
              }
          }
      }
  };
  </code></pre>
  
  <p>If somebody finds a better solution, please share.</p>