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 animation from xml then an easy way is to made an exact same reverse animation to original animation. Add Animation.AnimationListener to original animation and in onAnimationEnd method start the reverse animation.
Animation.AnimationListener
onAnimationEnd