How to disable BottomSheetDialogFragment dragging
There is simpler way of achieving the same after material design 1.2.0 was released. https://developer.android.com/reference/com/google/android/material/bottomsheet/BottomSheetBehavior#setdraggable When calling from BottomSheetDialogFragment: override fun onCreateDialog(savedInstanceState: Bundle?): Dialog { val bottomSheetDialog = super.onCreateDialog(savedInstanceState) as BottomSheetDialog bottomSheetDialog.setOnShowListener { val bottomSheet = bottomSheetDialog .findViewById<FrameLayout>(com.google.android.material.R.id.design_bottom_sheet) if (bottomSheet != null) { val behavior: BottomSheetBehavior<*> = BottomSheetBehavior.from(bottomSheet) behavior.isDraggable = false } } return bottomSheetDialog …