How to disable BottomSheetDialogFragment
dragging by finger?
I saw similar questions, but they\'re all about BottomSheet
not BottomSheetD
This is my solution:
setOnShowListener {
Handler().post {
val bottomSheet = findViewById(R.id.design_bottom_sheet) as? FrameLayout
bottomSheet?.let {
BottomSheetBehavior.from(it).state = STATE_EXPANDED
// Disable dialog dragging behavior which causes issue on EditText scroll!
BottomSheetBehavior.from(it).isDraggable = false
}
}
}