Around a watch: Handling rotary input in Wear OS
summary
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
chapters (5)
related talks
06mAround a watch: Handling rotary input in Wear OS
21mUnusable or Undebuggable? Rebelling against best practices
36mCreating your first Wear OS app using compose
44mCreate engaging apps for Wear OS
28mCreate beautiful, power-efficient apps for Wear OS
21mRotaryController: the other way of interacting with an Android system
32mDeveloping Wear OS Apps with Jetpack Compose
22mBuild a modern and expressive Wear OS app
