Problem on moving an image using translate animation on android?

I think you need to use animation. SetFillAfter(true); to retain the properties after the animation finishes. There is no need for the onAnimationEnd event.

Not sure why it's moving to 200, 200 though.

I've the same Problem with it and I know that calling animation. SetFillAfter(true) isn't the right way because it only draw a picture of the view on the last position of the animation, but the real view is on the position like before. Maybe there are no problems with an image, but you'll realize it if you want to try it with a button or something similar.

I want to move an image from 0,0 to 100,100 on android. The problem is when the animation finishes at 100,100, the image will move to 200,200 for a short time and back to 100,100 in the end. Is there any problem in my code?

How to let the image stop at 100,100 correctly?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions