I want move widget (such as button) with animation described in XML. But after animation done, that wid开发者_Go百科get return first position. How can I stop widget where I want position.
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.
精彩评论