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
If you are using Object or ValueAnimator to animate the view, you can simply do
ValueAnimator myAnimator = new ValueAnimator(); myAnimator.reverse()
Documentation can be found here.