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!
I had the same problem, this worked for me:
<set android:fillEnabled="true" android:fillAfter="true" xmlns:android="http://schemas.android.com/apk/res/android"> <translate android:fromYDelta="0" android:toYDelta="-20%p" android:duration="7000" /> </set>
Put the attributes fillEnabled and fillAfter in the Set tag.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With