"Bottom navigation headache"
summary
Explains how to move from single-Activity chaos to a working navigation component setup using AndroidX: uses XML navigation graphs, bottom menu IDs, child FragmentManagers and a pager, then swaps to a graph-per-tab approach with per-tab back stacks implemented in ~59 lines of glue code. Demonstrates deep-link support, custom action animations, ViewModel data sharing, and a remote build demo; the implementation runs but the live demo has occasional build hiccups.
AI-written summary · about
chapters (20)
- 0:00Introduction and speaker intro
- 1:03Problem solving approach and triangles
- 2:56Agenda and navigation headache
- 3:40Bottom navigation in modern apps
- 5:50Back stack behavior challenges
- 7:17Multiple back stacks solution
- 9:53Fragments and their limitations
- 13:09Navigation Component introduction
- 14:37Live coding setup
- 17:21One graph activity setup
- 21:45Navigation graph XML structure
- 22:53Bottom navigation integration
- 26:50Handling back navigation
- 27:56Graph per tab architecture
- 30:27Tab switching implementation
- 33:26Back press handling in tabs
- 35:34Animations in navigation
- 38:32Persisting tab stacks
- 41:55Final tweaks and summary
- 45:33Q&A session
