~/talk

Exploration of Touch & Input in Jetpack Compose

Talkat droidcon Berlin 2023 · 2023-07-05..07-07· [android, web-platform]
slides:none on file

Shows how Jetpack Compose maps raw pointer events to usable gestures and ships helper APIs so you can build a working photo-grid: uses detectTapGestures for double-tap with tap-location, chooses detectTransformGestures (not transformable) for pinch-zoom with centroid, applies graphicsLayer for scale/offset, and implements long-press-and-drag multi-select by attaching detectDragGesturesAfterLongPress to the grid and resolving a modifier conflict by switching item modifiers from combinedClickable to clickable. Code and gists live at google/composephotogrid; accessibility requires extra TalkBack handling.

AI-written summary · about

  1. 0:00Introduction to rich interactions
  2. 1:10Pointer input and gestures
  3. 3:38Gesture recognizers toolbox
  4. 5:43Gesture modifiers overview
  5. 7:06Choosing recognizers vs modifiers
  6. 8:29Recognize hold and apply
  7. 10:41Building the photo grid
  8. 11:43Tap to open full screen
  9. 14:29Double tap to zoom
  10. 17:41Pinch zoom and drag pan
  11. 19:48Tap scrim to exit
  12. 20:09Accessibility with TalkBack
  13. 21:57Multi select requirements
  14. 23:01State management for selection
  15. 25:51Long press to enter selection
  16. 27:16Tap to toggle selection
  17. 28:41Long press drag multi select
  18. 36:47Exit selection mode
  19. 37:31Resources and next steps
  20. 39:16Q&A and closing
~/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.