fillAfter and fillEnabled not working in Android view animation XML

Viewed 21428

I'm curious as to this behavior ... I'm currently setting the two values in the anim XML:

    android:fillEnabled="true"
    android:fillAfter="true"

However, the transformation does not apply after the animation is done ... it always resets. When I set it programmatically via code it does seem to work:

    animation.setFillEnabled(true);
    animation.setFillAfter(true);

So I'm just curious how this should work, as I'd rather set it on the XML. Thanks!

4 Answers
Related