~/talk

Understand touch event mechanics and master gestures

TalkinJapaneseat DroidKaigi 2024 · 2024-09-11..09-13· [android, web-platform]
name:usuiat
links:none on file
slides:none on file

Explains how Jetpack Compose detects and handles touch events and gestures, covering simple APIs like onClick, the detectGestures API, and how to build custom gesture detection. Describes event propagation, sharing vs. owning events, distinguishing taps from scrolls, handling canceled touch events, and implementing fling inertia; uses the open-source Zoomable Compose library as a concrete example for resolving gesture conflicts between an image pinch-zoom and a parent Pager scroll.

AI-written summary · about

  1. 0:00Introduction
  2. 3:11Compose gesture API
  3. 7:30Custom gesture
  4. 15:26Event propagation
  5. 18:35Pitfalls and fixes
  6. 26:07Zoom conflict avoidance
  7. 37:35Summary
~/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.