Exit animation not working; FragmentTransaction custom animation does not work for hide
Try to use setCustomAnimations(int enter, int exit, int popEnter, int popExit) instead of setCustomAnimations(int enter, int exit) When you will call popupbackstack exit animation wont be called
Personally for me this is a bug with the zPosition for Fragment animations.
What you see is the new fragment "appearing" this is because the new fragment is attached underneath the current one.
So when trying to animate a fragment 'Over the top' of an existing fragment, it appears like nothing is happening then the new one just 'appears'.
I have tried many work arounds, playing with zPosition (only affects windows not layouts, so no effect to fragments), onAnimationCreate()
bringing the root layout to front or even on animation start and stop... seems to do nothing.
So at this point in time without writing a complete custom animation for fragment transitions, they are a bit buggy at the moment.
You may have to play with. .add(Fragment)
wait for it to be added, then call .remove(Fragment)
removing the old fragment, that way the new fragment is physically placed on top of the existing fragment.