public void next(ControllerAnimator animator){
  if (animator == null)   throw new NullPointerException("Animator cannot be null");
  if (iterator.hasNext()) {
    View currentView=iterator.next();
    if (isUsingDefaultListener())     currentView.setOnClickListener(null);
    if (iterator.nextIndex() < mViews.size()) {
      View nextView=mViews.get(iterator.nextIndex());
      if (isUsingDefaultListener())       nextView.setOnClickListener(listener);
      animator.setOldView(currentView);
      animator.setNewView(nextView);
      currentView.startAnimation(animator);
      if (iterator.nextIndex() == mViews.size() - 1)       if (hasControllerListener())       mListener.onEndReached();
    }
 else {
      if (mLoop) {
        iterator=mViews.listIterator();
        View nextView=mViews.get(0);
        if (mUseDefaultListener)         nextView.setOnClickListener(listener);
        animator.setOldView(currentView);
        animator.setNewView(nextView);
        currentView.startAnimation(animator);
      }
    }
  }
}

public void next ( ControllerAnimator animator ) { if ( animator == null ) throw new NullPointerException ( "Animator cannot be null" ) ; if ( iterator . hasNext ( ) ) { View currentView = iterator . next ( ) ; if ( isUsingDefaultListener ( ) ) currentView . setOnClickListener ( null ) ; if ( iterator . nextIndex ( ) < mViews . size ( ) ) { View nextView = mViews . get ( iterator . nextIndex ( ) ) ; if ( isUsingDefaultListener ( ) ) nextView . setOnClickListener ( listener ) ; animator . setOldView ( currentView ) ; animator . setNewView ( nextView ) ; currentView . startAnimation ( animator ) ; if ( iterator . nextIndex ( ) == mViews . size ( ) - 1 ) if ( hasControllerListener ( ) ) mListener . onEndReached ( ) ; } else { if ( mLoop ) { iterator = mViews . listIterator ( ) ; View nextView = mViews . get ( 0 ) ; if ( mUseDefaultListener ) nextView . setOnClickListener ( listener ) ; animator . setOldView ( currentView ) ; animator . setNewView ( nextView ) ; currentView . startAnimation ( animator ) ; } } } }
go to the next view using the animator passed in
