I'm replacing Fragment with :
Fragment fragment = new TheFragment();
fragment.setAllowEnterTransitionOverlap(false);
getSupportFragmentManager().beginTransaction().setCustomAnimations(R.anim.fade_in, R.anim.fade_out).replace(R.id.LayoutContent, fragment).commit();
But the enter en exit animation are played at the same time.
How can I wait for exit animation to finish before playing the new Fragment enter animation ?