@Override public boolean onDependentViewChanged(final CoordinatorLayout parent, final FloatingActionButton child, final View dependency) {
		// Block parent behavior for SnackBar if bottom sheet is visible
		if (dependency instanceof Snackbar.SnackbarLayout) {
			final ViewGroup.LayoutParams fab_general_params = child.getLayoutParams();
			if (fab_general_params instanceof CoordinatorLayout.LayoutParams) {
				final CoordinatorLayout.LayoutParams fab_params = ((CoordinatorLayout.LayoutParams) fab_general_params);
				final int anchor_id = fab_params.getAnchorId();
				if (anchor_id != 0) {
					final View anchor = parent.findViewById(anchor_id);
					if (anchor != null && anchor.getVisibility() == View.VISIBLE) return false;
				}
			}
		}
		return super.onDependentViewChanged(parent, child, dependency);
	}
Expand the default behavior of FloatingActionButton to support {@link BottomSheetBehavior}

Created by Oasis on 2016/6/24.
mobile/src/main/java/com/oasisfeng/island/util/FloatingActionButtonBehavior.java