Skip to content

Magellan 1.x Transitions

Ryan Moelter edited this page Jul 18, 2021 · 1 revision

Overriding the next transition between two Screens

navigator.overrideTransition(new CircularRevealTransition(targetView));

Available transitions

  • DefaultTransition

normal_transition_and_back

  • CircularRevealTransition

circular_reveal_transition

  • CrossfadeTransition
  • NoAnimationTransition

Overriding all transitions

Navigator.withRoot(root)
  .transition(new AwesomeTransition())
  .build();

Implementing your own Transition

public class AwesomeTransition implements Transition {
  @Override
  public void animate(View from, final View to, NavigationType navType, Direction direction, Callback callback) {
    // animate
    // Call: callback.onAnimationEnd() when the animation is done
  }
}