Dim Screen and Block Interaction with BottomSheets
问题 BottomSheetBehavior has been introduced in Android Design Support Library 23.2, however it does not dim the rest of the screen and does not block interaction with the rest of the UI. Is there anyway this can be achieved? 回答1: public class BottomSheetDimmedFragment extends BottomSheetDialogFragment { public static final String TAG = BottomSheetDimmedFragment.class.getSimpleName(); @NonNull @Override public Dialog onCreateDialog(final Bundle savedInstanceState) { final BottomSheetDialog dialog