Reputation: 1321
I want move widget (such as button) with animation described in XML. But after animation done, that widget return first position. How can I stop widget where I want position.
Upvotes: 1
Views: 337
Reputation: 20319
The animation only describes the movement of the widget, and when the animation finishes the widget is redrawn at its original location.
You need to move the widget to the final location immediately before you animate it. Then when the animation is finished the widget new position will be the same as its position at the end of the animation.
Upvotes: 1