example/src/main/java/de/mrapp/android/view/example/MainActivity.java
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;
            }

        };
    }
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;
            }

        };
    }
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.

@return The listener, which has been created, as an instance of the type {@link
OnClickListener}
Creates and returns a listener which allows to show or hide the floating action buttons .