I'm trying to set an exit transition different than the enter transition between scenes. The goal is that scene enter sliding from right and exits sliding to left.
I'm able to do the enter transition sliding from right but when it exits, it does the reverse, meaning that, on exit, it exits sliding back to right.
How to set the exit transition?
Here's the current code:
public void loadScene(int resourceId) {
Scene transition_scene = Scene.getSceneForLayout(getRootView(), resourceId, this);
Transition enterTransition = TransitionInflater.from(this).inflateTransition(R.transition.slide_right);
TransitionManager.go(transition_scene, enterTransition);
}