title: Check if AnimatorSet has finished animation?
body: <p>I'm trying to animate buttons with fade in animation using <code>AnimatorSet</code></p>
  
  <blockquote>
    <p><code>Button fades in &gt; Click button &gt; Remaining buttons fade out</code></p>
  </blockquote>
  
  <p>So in order to do this, I want to set the <code>onClickListner after the animation is completed</code>, but that doesn't seem to work. Clicking a button in the middle of the animation <code>triggers the onClick action</code>:</p>
  
  <pre><code>setQuestion = new AnimatorSet();           
  setQuestion.playSequentially(fadeinAnimationQ,fadeinAnimation1,fadeinAnimation2,fadeinAnimation3,fadeinAnimation4,fadeinAnimation5);
  setQuestion.start();
  </code></pre>
  
  <p>This is the method that checks <code>if the animation has finished</code>.</p>
  
  <pre><code>private void checkAnimation() {
      while (true) {
          // Check if animation has ended
          if (setQuestion.isRunning() == false) {
              assignListners();
              break;
          }
      }
  }
  </code></pre>