I have an activity with 2 fragments. I have added custom animations for fragment transactions using setCustomAnimations function. Now I want to perform some operations after fragment transition animation effect. For that I implemented android.view.animation.Animation.AnimationListener interface in my main Activity. But onAnimationEnd method is not getting invoked after the fragment transition operation. Please help!!
Share
You cannot set an AnimationListener on these animations because they are provided using a resource identifier. To set an AnimationListener you need a reference to the animation in code and be able to call setAnimationListener to actually set your AnimationListener on a given animation.