private OnClickListener createHideFloatingActionButtonsListener ( ) { return new OnClickListener ( ) { @ Override public void onClick ( final View v ) { int visibility = floatingActionButtonsVisible ? View . INVISIBLE : View . VISIBLE ; smallFloatingActionButton . setVisibility ( visibility , true ) ; normalFloatingActionButton . setVisibility ( visibility , true ) ; largeFloatingActionButton . setVisibility ( visibility , true ) ; floatingActionButtonsVisible = ! floatingActionButtonsVisible ; } } ; }
Creates and returns a listener which allows to show or hide the floating action buttons .