Menu

1 / 6

Part 4: When the Screen Changes Silently: Live Regions, Headings and Focus in Compose

DEV Community: android·Android Expert·15 days ago
#Q2AUb89m
#devtoandroid#devto#dev#focus#modifier
Reading 0:00
15s threshold

Build for Everyone · Part 4 of 5

Previously: Parts 1 to 3 made static screens accessible and kept them that way with tests. This part is about everything that happens after the screen first appears.

TL;DR Sighted users notice change for free: a badge ticks up, an error turns red, results slide in. TalkBack users only notice what is spoken or what receives focus . Three tools close that gap:

Live regions announce changes without moving focus.

Headings let people jump between sections instead of swiping through everything.

Deliberate focus management puts the user where the next action is, but only at moments they’ll expect.

Each one is easy to add and just as easy to overdo, so this post spends as much time on restraint as on code.

The silent cart counter

A user is on a product page with TalkBack running. They double-tap Add to cart . On screen, the badge on the cart icon in the top bar ticks from 3 to 4. That’s the confirmation.

TalkBack says nothing.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.