Skip to content

Android components Layout

StanceIcon

Beta

Draws one of the 90 Stance icons, tinted with the current content colour.

  • PlatformAndroid, Jetpack Compose
  • Builds onIcon
  • Kindcomposable

Preview

Rendered by the Jetpack Compose library, not drawn by hand.

StanceIcon on AndroidStanceIcon on AndroidStanceIcon on Android
StanceIcon, Light appearance
Light
StanceIcon, Dark appearance
Dark
StanceIcon, High contrast appearance
High contrast

Usage

kotlin
Row(horizontalArrangement = Arrangement.spacedBy(StanceSpacing.space3)) {
    StanceIcon(StanceIcons.Signature, contentDescription = null)
    StanceIcon(StanceIcons.AlertTriangle, contentDescription = "Warning")
}

Accessibility

  • Pass null as the description for decorative icons.

On other platforms