Android components Layout
stanceFocusRing
BetaA modifier that draws the Stance focus ring while an element has keyboard or D-pad focus.
- PlatformAndroid, Jetpack Compose
- Builds on
Modifier.border - Kindhelper
Preview
Rendered by the Jetpack Compose library, not drawn by hand.






Usage
StanceSurface(modifier = Modifier.stanceFocusRing(), onClick = {}, bordered = true) {
Text("Focus me with a keyboard", modifier = Modifier.padding(StanceSpacing.space4))
}Accessibility
- The ring is 2dp, or 3dp in high contrast.