Android components Navigation
StanceAdaptiveNavigation
BetaNavigation that switches between bar, rail and drawer by window width.
- PlatformAndroid, Jetpack Compose
- Builds on
NavigationBar, NavigationRail, PermanentNavigationDrawer - Kindcomposable
Preview
Rendered by the Jetpack Compose library, not drawn by hand.






Usage
var selected by remember { mutableIntStateOf(0) }
StanceAdaptiveNavigation(
items = destinations,
selectedIndex = selected,
onSelect = { selected = it },
topBar = { StanceTopAppBar(destinations[selected].label) },
) { padding ->
Text("Content", modifier = Modifier.padding(padding))
}Accessibility
- Order and selection are kept across layouts.