We have a definite TextView position. When I apply animation for it, after completion, it is sent to its past place. How to make it so that after the animation it remains in the same position when the animation ended.

 <?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android" android:duration="2000"> <translate android:fromXDelta="-200" android:toXDelta="0"> </translate> </set> 

    1 answer 1

    Set fillAfter="true" and after the animation is completed, the state of the object being animated will not be reset to its original state. By default, this flag is false .