Questions tagged [android-modalbottomsheetlayout]

7 questions
2
votes
1 answer

Android Compose ModalBottomSheetLayout outside click

I want to catch event when user clicks outside of ModalBottomSheetLayout. I wrapped ModalBottomSheetLayout with Box which is full size of the screen and set click listener. But Click listener only works when I click on the ModalBottomSheetLayout but…
2
votes
1 answer

Jetpack Compose ModalBottomSheetLayout onCancel event

I'm using ModalBottomSheetLayout @Composable fun BottomSheetWrapper() { ModalBottomSheetLayout( sheetState = sheetState, sheetContent = { Spacer(modifier = Modifier.height(1.dp)) content() }, modifier = modifier, …
0
votes
0 answers

ModalBottomSheetLayout flashes on back navigation (Jetpack Compose)

I'm using ModalBottomSheetLayout (import androidx.compose.material.ModalBottomSheetLayout) and have some items in a modal sheet layout and when I press on an Item, it navigates to next screen. However, when I press back button on the second screen,…
0
votes
0 answers

Modal bottom sheet - No dimming (scrim) of content underneath (Material Components Library)

Following the basic description on how to use the modal bottom sheet in the Android Material Components Library, there is no dimming of the content underneath the bottom sheet, even though the image in BottomSheet.md clearly shows dimming. This…
0
votes
0 answers

Android Compose ModalBottomSheetLayout over DialogFragment

I display ModalBottomSheetLayout @Composable fun BottomSheetWrapper() { ModalBottomSheetLayout( sheetState = sheetState, sheetContent = { Spacer(modifier = Modifier.height(1.dp)) content() }, modifier = modifier, …
0
votes
0 answers

Compose ModalBottomSheetLayout overlaps with activity content

I have a ModalBottomSheetLayout @Composable fun BottomSheetWrapper() { ModalBottomSheetLayout( sheetState = sheetState, sheetContent = { Spacer(modifier = Modifier.height(1.dp)) content() }, modifier = modifier, …
0
votes
0 answers

Compose ModalBottomSheetLayout drag gesture detection

I want to detect drag gesture behavior for my ModalBottomSheetLayout. I want to catch the event when user swipes drags the sheet up trying to expand it. ModalBottomSheetLayout( sheetState = sheetState, sheetContent = { content() …