Adventures in Navigation
summary
Android Jetpack Navigation Components centralize navigation into an XML nav graph visualized in Studio, with a NavHostFragment and NavController handling navigation, plus Navigation UI helpers for drawer, bottom nav and toolbar. The safe args plugin generates type-safe safe args directions to prevent runtime crashes. Conditional flows use a shared activity ViewModel, LiveData-wrapped events and an event wrapper to avoid repeated navigation. Deep links and Instant Apps work via generated PendingIntents, nested graphs, global actions and popUpTo inclusive to clear intermediate backstack entries.
AI-written summary · about
chapters (17)
- 0:00Introduction to navigation
- 1:29Fixed starting destination
- 3:58Deep link consistency
- 4:18Navigation component overview
- 7:47Activity vs fragment destinations
- 9:51Single activity model benefits
- 10:35Actions vs destinations
- 10:55Safe args plugin explained
- 13:04Navigation UI components
- 16:35Tabs and navigation drawer
- 19:01Collapsing toolbar challenges
- 20:25Conditional navigation logic
- 24:57Login flow with nested graphs
- 27:43Shared activity view model
- 30:53Deep linking with navigation
- 32:16Instant apps and navigation
- 36:07Q&A and resources
related talks
33mAdventures in Navigation
38mAdventures in Navigation
36mNavigation and the Single Activity: Learnings from a Skeptic
28mJetpack Navigation
34mAndroid Jetpack: Manage UI navigation with navigation controller
41mNavigating Android Like a Pro
21mStop rowing and sail Android with Navigation!
27mManaging In-App Navigation with the Navigation Architecture Component
