@ TargetApi ( VERSION_CODES . FROYO ) private OnShowListener createOnShowListener ( ) { return new OnShowListener ( ) { @ Override public void onShow ( final DialogInterface dialog ) { if ( onShowListener != null ) { onShowListener . onShow ( dialog ) ; } if ( maximize ) { maximize = false ; rootView . maximize ( new DecelerateInterpolator ( ) ) ; } } } ; }
Creates and returns a listener which allows to immediately maximize the bottom sheet after it has been shown .