Moving an image through a linearlayout

后端 未结 4 1574
一生所求
一生所求 2021-01-27 02:48

I\'m developing an Android 2.2 application.

I want to move an image from left side of the screen to the right side of the screen.

How can I do that? I\'ve read t

4条回答
  •  面向向阳花
    2021-01-27 03:02

    I would check your source again. Maybe it's out of context. But the easiest way to do this is to use a Translate animation that originates from the Image's starting place and translates it to the other side of the screen. After that is done I usually register an animation callback so that I can update the true position of the image after the animation is over. hope that helps.

提交回复
热议问题