Gesture navigation best practices
summary
Covers concrete migration steps to use the Android 13 onBackInvoked / AndroidX ahead-of-time APIs, shows a WebView example that moves from onKeyDown/onBackPressed to registering and disabling callbacks so back sweeps navigate page history instead of exiting, and demonstrates using predictive back gesture with the developer option for animations. Explains edge-to-edge layout, immersive modes, and how to compute and apply setSystemGestureExclusionRects. Claims users swipe back ~300 times/day and warns Android 14 makes the new model mandatory.
AI-written summary · about
chapters (7)
- 0:00Introduction and overview
- 3:18Current state of gesture navigation
- 7:29Predictive back gesture introduction
- 11:40Enabling predictive back in apps
- 18:24Handling back gesture conflicts
- 24:06Maximizing screen real estate
- 31:08Key takeaways and next steps
related talks
17mBringing Predictive Back Gestures to your App
33mWhat's up with Android's back?
14mBasics for System Back
28mBuilding for the Future of Android
37mGoing edge-to-edge with Gesture Navigation
43mBuilding for the Future of Android
24mUI That Connects an Android App's Inside and Outside
20mAdvanced Android Touches
