It seems that an android animation is not truly finished when the `onAnimationEnd` event is fired although `animation.hasEnded` is set to true.

I want my view to change it's background drawable on the end of it's `ScaleAnimation` 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.

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?

Thank you!

---

//EDIT: I'm using an `AnimationListener` to get the following call:

```
    @Override
public void onAnimationEnd(Animation animation)
{
    View view = (MyView) ((ExtendedScaleAnimation) animation).getView();

    view.clearAnimation();
    view.requestLayout();
    view.refreshBackground(); // <-- this is where the background gets changed
}

```