Navigation Components and where to find them
summary
Covers Jetpack Navigation Component setup and a working demo: XML nav graph, NavHostFragment and NavController wiring, actions with enter/exit and pop animations, and using popUpToInclusive to prevent returning to login so back exits. Shows passing integer 56 with the Safe Args Gradle plugin that generates FirstFragmentDirections/SecondFragmentDirections/SecondFragmentArgs (three files) and using navigate(...) with arguments. Implements a functional navigation drawer with setupWithNavController, AppBarConfiguration and override of navigateUp. Mentions deep links and new API to retain fragment state.
AI-written summary · about
chapters (13)
- 0:00Introduction to Navigation
- 1:06Navigation Component Basics
- 2:11Implementing Navigation Graph
- 3:59Navigation Graph XML Breakdown
- 5:03Basic Fragment Navigation
- 6:04Handling Back Stack
- 7:29Sending Data with Bundles
- 8:30Safe Args for Type-Safe Data
- 10:15Safe Args Demo
- 11:40Navigation Drawer Setup
- 14:08Navigation Drawer Demo
- 14:52Deep Linking Overview
- 15:33Q&A and Resources
related talks
33mAdventures in Navigation
38mAdventures in Navigation
27mManaging In-App Navigation with the Navigation Architecture Component
43mOh, the places you’ll go! — Android Navigation: How Does It Work & What’s New
34mAndroid Jetpack: Manage UI navigation with navigation controller
36mAdventures in Navigation
28mJetpack Navigation
41mNavigating Android Like a Pro
