[Suggestion Needed] Dismissing bottom sheet when tapping outside of bottom sheet
See original GitHub issueHi. Great component! This is working fantastic so far. One thing I haven’t figure out is a way to easily dismiss it when tapping outside of the sheet. I can easily dismiss it programmatically by using snapTo(index)
however when the sheet is raised I am not sure how to intercept these taps to prevent it from tapping on content underneath.
Thank you!
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (5 by maintainers)
Top Results From Across the Web
Prevent dismissal of BottomSheetDialogFragment on touch ...
According to the BottomSheet specification bottom sheets can be dismissed by touching outside of the bottom sheet, therefore what are my options ...
Read more >Sheets: bottom - Material Design
If the content outside of the dialog is tapped then the bottom sheet is dismissed. Modal bottom sheets can be dragged vertically and...
Read more >Sheets - Presentation - Human Interface Guidelines - Design
Support swiping to dismiss a sheet. People expect to swipe vertically to dismiss a sheet instead of tapping a dismiss button. If people...
Read more >Jetpack Compose bottom sheet over Android view using ...
This article will teach us how to build Kotlin extensions for Activity and fragment to display bottom sheets using Jetpack compose.
Read more >Introducing Navigation-Material 🎨️ | by Jossi Wolf - Medium
You can navigate away from bottom sheet destinations as usual, or the user can dismiss the sheet by tapping on the scrim or...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I do like this:
Usage:
Works like a charm 😃
using this code, scrollview outside
<View style={{ flex: 1 }}>
cannot be scrolled