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!
In general, use the fillAfter and fillEnabled on the root element
so either
OR
I had the same problem, this worked for me:
Put the attributes fillEnabled and fillAfter in the Set tag.
It also works if you don't have the set tag and are just doing translate or something like so.
putting the fillEnabled and fillAfter attributes in the set tag helped solved the issue.