Compose in production

5 concepts · 15 practice questions

Accessibility

Screen readers read semantics, not pixels. Icon-only controls need a contentDescription, and related elements should be merged into one focusable unit. A clickable parent merges its children for you. Touch targets should be at least 48dp, which Material components handle by default.

// clickable merges the children, so TalkBack reads the row as one element
Row(Modifier.clickable(onClickLabel = "Open article", onClick = onOpen)) {
    Icon(Icons.Default.Star, contentDescription = "Favourite")
    Text(title)
}

Also covered

Theming and design systems
Animation
Interop and migration
Lazy lists

Sign in to read the rest and take the 15-question test.

Sign in to continue