bTagTiger
bTagTiger

Reputation: 1321

About animation in android widget

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

Answers (1)

slayton
slayton

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

Related Questions