~/talk

Bringing Predictive Back Gestures to your App

Talkat droidcon Berlin 2024 · 2024-07-03..07-05· [android]
links:none on file
slides:none on file

Timeline of platform changes (onBackInvoked in Android 13, onBackAnimationCallback in 14, enabled by default in 15) maps to a concrete recipe: use the predictive back handler from androidx.activity + the Compose predictiveBackHandler flow, drive a manual seekable transition state (seekTo/animateTo) to reflect gesture progress, handle CancellationException to rewind, and upgrade to Navigation Compose 2.8.0-alpha02 for built-in support. Demo app shows gesture side, progress, X/Y positions, works for bottom sheets and shared-element effects but occasionally has visual bugs.

AI-written summary · about

  1. 0:00Introduction
  2. 1:06Android back gestures history
  3. 3:15Predictive back API evolution
  4. 4:38Jetpack navigation support
  5. 5:41AndroidX activity API
  6. 7:04Custom back host with predictive back
  7. 9:15Integrating back handler
  8. 11:05Demo: back handler features
  9. 13:37Custom transitions with back
  10. 14:42User feedback with back gestures
  11. 15:03Summary
~/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.