app/src/main/java/com/stoneium/onepagesample/navigation/NavigationController.java
/***
     * Transition to a given view.
     *
     * @param name           The name of the view to transition to.
     * @param state          A state object that can be passed to the view.
     * @param transitionType The type of transition to use.
     */
Transition to a given view.
@param name           The name of the view to transition to.
@param state          A state object that can be passed to the view.
@param transitionType The type of transition to use.
Transition to a given view . @param name The name of the view to transition to . @param state A state object that can be passed to the view . @param transitionType The type of transition to use .
public void transitionToView(String name, Object state, TransitionType transitionType) {
        _currentView = name;
        if (!_views.containsKey(name)) {
            _logger.debug("NavigationController:" +
                    " Could not change to view. Name was not found.");
            return;
        }
        if (_masterView == null) {
            _logger.debug("NavigationController: " +
                    "Could not change to view. Master view not found.");
            return;
        }
        _transitionType = transitionType;
        _logger.debug(String.format("Transition to: %s", name));
        _masterView.transitionToView(name, _views.get(name), transitionType, state);
    }
public void transitionToView ( String name , Object state , TransitionType transitionType ) { _currentView = name ; if ( ! _views . containsKey ( name ) ) { _logger . debug ( "NavigationController:" + " Could not change to view. Name was not found." ) ; return ; } if ( _masterView == null ) { _logger . debug ( "NavigationController: " + "Could not change to view. Master view not found." ) ; return ; } _transitionType = transitionType ; _logger . debug ( String . format ( "Transition to: %s" , name ) ) ; _masterView . transitionToView ( name , _views . get ( name ) , transitionType , state ) ; }
Transition to a given view.
Transition to a given view .