Android components Forms
StanceSelect
BetaChooses one value from a list using the platform exposed dropdown menu.
- PlatformAndroid, Jetpack Compose
- Builds on
ExposedDropdownMenuBox - Kindcomposable
Preview
Rendered by the Jetpack Compose library, not drawn by hand.






Usage
var role by remember { mutableStateOf<String?>("admin") }
StanceSelect(
label = "Role",
options = listOf(StanceSelectOption("admin", "Administrator"), StanceSelectOption("member", "Member")),
selected = role,
onSelect = { role = it },
)Accessibility
- The field is named by its label and announces the selected value.