public void showSheet ( ) { if ( isAnimating ( ) ) { return ; } isShowing = true ; // Show overlay overlayAnimation . show ( SHOW_OVERLAY_ANIM_DURATION , null ) ; // Morph FAB into sheet morphIntoSheet ( new AnimationListener ( ) { @ Override public void onEnd ( ) { // Call event listener if ( eventListener != null ) { eventListener . onSheetShown ( ) ; } // Assuming that this is the last animation to finish isShowing = false ; // Hide sheet after it is shown if ( hideSheetAfterSheetIsShown ) { hideSheet ( ) ; hideSheetAfterSheetIsShown = false ; } } } ) ; // Call event listener if ( eventListener != null ) { eventListener . onShowSheet ( ) ; } }
Shows the sheet .