~/talk

Around a watch: Handling rotary input in Wear OS

Talkat Android Dev Summit 2022: Form Factors · on Wednesday, 2022-11-09· [android]
slides:none on file

Wear OS generates rotary events for crowns and bezels and users average under seven seconds per session, so code must be specific: Compose for Wear OS + a ScalingLazyColumn inside Scaffold uses a hoisted list state and a position indicator to show progress, then requests focus with a focus requester and handles events with the onRotaryScrollEvent modifier to scroll or adjust discrete values. Multiple pickers need separate focus requesters, sensitivity requires dampening/snapping, and Horologist supplies ready utilities and emulator tests.

AI-written summary · about

  1. 0:00Start
  2. 0:30Rotary input
  3. 0:59Scrolling
  4. 3:01Discrete values
  5. 3:40Custom actions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.