~/talk

Interacting with Composable Canvas

Talkat Android Worldwide October 2022 · on Tuesday, 2022-10-25· [android, web-animation]
slides:none on file

Builds an animated, interactive bar chart using Jetpack Compose Canvas that actually works end to end: drawing with drawRect and drawLine, using nativeCanvas drawText because compose text is experimental, detecting touches with pointerInput + awaitFirstDown and hit-testing against precomputed bar X ranges, animating selection with Animatable-driven selection and two-state (permanent + temporary) logic so two highlights can coexist, and validating behavior with Compose UI tests that simulate down/move/up gestures; reports better performance than thousands of Boxes.

AI-written summary · about

  1. 0:00Start
  2. 6:33Android view Canvas vs Composable canvas
  3. 17:27Pointer input
  4. 21:33Simple selection
  5. 30:40Final result
  6. 32:07Testing
  7. 35:59Final thoughts
~/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.