protected void cancel ( ) { int numAnimators = mCurrentAnimators . size ( ) ; for ( int i = numAnimators - 1 ; i >= 0 ; i -- ) { Animator animator = mCurrentAnimators . get ( i ) ; animator . cancel ( ) ; } if ( mListeners != null && mListeners . size ( ) > 0 ) { ArrayList < TransitionListener > tmpListeners = ( ArrayList < TransitionListener > ) mListeners . clone ( ) ; int numListeners = tmpListeners . size ( ) ; for ( int i = 0 ; i < numListeners ; ++ i ) { tmpListeners . get ( i ) . onTransitionCancel ( this ) ; } } }
This method cancels a transition that is currently running .