I have applied a zoom in animation to my Imageview using
myImageView.startAnimation(AnimationUtils.loadAnimation(this,R.anim.zoom_in ));
by specifying android:fillEnabled and android:fillAfter attributes of animation to true.How can I , at a later point of time clear the animation and revert my ImageView to the old state?I Tried with clearAnimation() method of ImageView but seems not to be working with fillEnabled and fillAfter attributes .
myImageView.setAnimation(null);
should work. Hope it helps!
myImageView.clearAnimation() is what you are looking for.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With