views:

873

answers:

4

I'm trying to basically have a button move down to the bottom of the screen with an animation after it is clicked.

I have the animation working perfectly, but the button doesn't stay at the bottom of the screen after the animation finishes. I've tried using offsetTopAndBottom(), but it only stays down there for one frame, and is redrawn at the top. How can I get the button to stay?

+1  A: 

Hi!
Did you try to call setFillAfter(true) on your animation instance?

Regards!

Ramps
Adding that didn't work. It seems like this should be an easy problem to fix, I can't imagine how anyone could do any animation without solving this problem.
GuyNoir
... and did you call setFillEnabled(true) before setFillAfter(true)?
Ramps
Haha, it actually did work, I was calling it on the wrong object though. :P Anyways, thanks.
GuyNoir
Oh, good to know :) Regards!
Ramps
A: 

Do you mind sharing the code, for moving an object?

aryaxt
A: 

Thanks alotttttttttttttttttttttttt Ramps it worked.

vivek_Android