Reversing an Animation

前端 未结 8 474
清歌不尽
清歌不尽 2020-11-30 01:41

I have an ImageView that gets animated when it is added to a layout. When it is removed, I want to reverse the same animation.

Is there a way to reverse an animation

8条回答
  •  无人及你
    2020-11-30 02:14

    You can make the code remember the original position and the end position. And let your code dynamically get those values when triggering animation.

提交回复
热议问题