Archie
09/30/2020, 1:14 PMDropDownMenu
work like TextInputLayout
with Spinner
? Like so?Yann Badoual
09/30/2020, 1:58 PMDropdownMenu
, it takes a toggle
composable where you can put anything (your TextInputLayout
equivalent here), and a content composable where you can put a list of DropdownMenuItem
(or whatever) for the drop down contentYann Badoual
09/30/2020, 2:00 PMvar isOpen by remember { mutableStateOf(false) }
DropdownMenu(
toggle = {
// Implement your toggle
},
expanded = isOpen,
onDismissRequest = { isOpen = false }
) {
items.forEach {
DropdownMenuItem(
onClick = {
// Do stuff
isOpen = false
}
) {
Text("option")
}
}
}
Yann Badoual
09/30/2020, 2:01 PMforEach
into a key
block, not sure about that partArchie
09/30/2020, 2:07 PMmanueldidonna
09/30/2020, 2:09 PMYann Badoual
09/30/2020, 2:14 PMYann Badoual
09/30/2020, 2:14 PMArchie
09/30/2020, 2:22 PMArchie
09/30/2020, 2:24 PMMihai Popa
10/02/2020, 10:40 AMMihai Popa
10/02/2020, 10:42 AMDropdowMenu
implementation and tweaking the positioning and the layoutArchie
10/02/2020, 10:44 AMMihai Popa
10/02/2020, 10:45 AMDropdownMenu
as there is no intermediate API that allows changing the positioningMihai Popa
10/02/2020, 10:45 AMArchie
10/02/2020, 10:46 AMYann Badoual
10/02/2020, 10:50 AMYann Badoual
10/02/2020, 10:50 AMArchie
10/02/2020, 10:52 AMMihai Popa
10/02/2020, 1:15 PM