Due to my low reputation point, I can't comment. So i'm extending this question: Disabling User dragging on BottomSheet
The solution provided by Ray W works but now it expands by sliding and dragging on parent view (CoordinatorLayout).
Image
In that image, if I drag on "Unwanted Drag Area", BottomSheet slides up. How can I filtered out or stop the touch events on unwanted view?
For the Kotlin, simply add below line in your code,
behaviour.isDraggable = false
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With