• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps translate animation help!

Okay... I just tried translate animation today... Here's what I want to happen. Imageview moves from point A to point B after that the imageview has to stick to point B.

Okay, so I got the part where the imageview goes from point A to point B, HOWEVER, the imageview would not stick to point B. It just goes back to point A? Why is that? Any ideas?
 
So what you have to do is after you create your AnimationSet object...
AnimationSet animation = new AnimationSet(true);
... you have to call the method setFillAfter(true); to tell the animation to keep its final position. Like this... animation.setFillAfter(true);

Hope that helps.
 
Back
Top Bottom