I am using Fragment Transition animation. I am not using XML files for animations. I have subclassed Transition. Both animations are played fine but outgoing fragment's animation is drawn over incoming fragment's animation. I want to make outgoing fragment's animation to be drawn behind incoming fragment's animation. I am using androidx.fragment.app.FragmentContainerViewas a container for fragment.
Ref: https://developer.android.com/reference/androidx/fragment/app/FragmentContainerView
This document says
Fragments using exit animations are drawn before all others for FragmentContainerView. This ensures that exiting Fragments do not appear on top of the view.
I am calling .replace(...) in supportFragmentManager.beginTransaction().