title: android animation is not finished in onAnimationEnd
body: <p>It seems that an android animation is not truly finished when the <code>onAnimationEnd</code> event is fired although <code>animation.hasEnded</code> is set to true.</p>
  
  <p>I want my view to change it's background drawable on the end of it's <code>ScaleAnimation</code> which it does, but you can clearly see that it is changed some miliseconds before it finishes. The problem is, that it flickers because the new background appears (=is) scaled for a short time until the animation really finishes.</p>
  
  <p>Is there a way to get either the real end of the animation or just prevent the new background from beeing scaled this short period of time?</p>
  
  <p>Thank you!</p>
  
  <hr>
  
  <p>//EDIT: I'm using an <code>AnimationListener</code> to get the following call:</p>
  
  <pre><code>    @Override
  public void onAnimationEnd(Animation animation)
  {
      View view = (MyView) ((ExtendedScaleAnimation) animation).getView();
  
      view.clearAnimation();
      view.requestLayout();
      view.refreshBackground(); // &lt;-- this is where the background gets changed
  }
  </code></pre>