amar_1995
11/18/2019, 12:59 PMBottomDrawerLayout
and DropdownPopup
.
Is there something else to which I can try to achieve this ?emmax
11/18/2019, 1:38 PMBruno_
11/18/2019, 5:13 PMBruno_
11/18/2019, 5:24 PMAlertDialog(onCloseRequest = {},
text = {
Text("Applied successfully to $progress out of $selectedAdsSize ads")
},
confirmButton = {
Button(text = "Go back to ads list", onClick = { navigateTo(Screen.AdsList) })
}
)
not really a snackbar but gets the job doneamar_1995
11/19/2019, 5:34 AMsnackbar
. I want to implement something like BottomSheetDialog
. So, Is there anything in compsoe ui.matvei
11/19/2019, 11:41 AMamar_1995
11/19/2019, 11:50 AMDrawer shouldn't have infinite height
. It is solved after binding inside container.
Second I cannot able to decide what to put inside bodyContent
as I need to show bottom drawer after onClick method.amar_1995
11/19/2019, 12:02 PMmatvei
11/19/2019, 12:08 PMmatvei
11/19/2019, 12:13 PMenum class DrawerTypes { None, Settings, UserProfile}
@Composable fun Test() {
val bottomDrawerState = +state { None }
BottomDrawerLayout{
...,
drawerContent = {
when (bottomDrawerState) {
Settings -> Settings()
None -> @Composable {}
...
}
},
bodyContent = YourAppContent({ newDrawerState:DrawerTypes -> bottomDrawerState.value = newDrawerState })
}
}
amar_1995
11/19/2019, 12:13 PMsetContent {
MaterialTheme(
colors = lightThemeColors,
typography = themeTypography
) {
EditScreen()
}
}
@Composable
fun EditScreen() {
VerticalScroller() {
Padding(padding = 4.dp) {
Column {
EditView1()
EditView2()
}
}
}|
}
In Above code editView1 and editview2 will trigger onClick which will open bottomDrawermatvei
11/19/2019, 12:14 PMmatvei
11/19/2019, 12:15 PMamar_1995
11/19/2019, 12:16 PMamar_1995
11/22/2019, 9:43 AMStateDraggable
and BottomDrawer can open while dragging and also with onClick event. So i am not able to provide two drawerContentmatvei
11/22/2019, 11:20 AMgestureEnabled: Boolean
param in BotomDrawerLayout, maybe that can help.amar_1995
11/22/2019, 11:49 AMmatvei
11/22/2019, 11:54 AMamar_1995
11/22/2019, 11:58 AM