Navigation 3

by android42dc2270e960Complete terms in LICENSE.txt7.7K starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated 13 days ago

Learn how to install and migrate to Jetpack Navigation 3, and how to implement features and patterns such as deep links, multiple backstacks, scenes (dialogs, bottom sheets, list-detail, two-pane, supporting pane), conditional navigation (such as logged-in navigation versus anonymous), returning results from flows, integration with Hilt, ViewModel, Kotlin, and view interoperability.

AI-generated overview

Reference guide and code recipes for installing, migrating to, and using Jetpack Navigation 3 in Android apps.

What it does
Provides developer documentation and recipe references for Jetpack Navigation 3, covering installation, migration from Navigation 2, and type-safe navigation. It documents patterns such as deep links, multiple back stacks, scenes (dialogs, bottom sheets, list-detail, two-pane), conditional navigation, returning results, lifecycle, and modularization with Hilt or Koin. It produces guidance and code examples rather than executable artifacts.
When to use it
Use when building or migrating an Android app that uses Jetpack Navigation 3 and you need implementation patterns or migration steps. Also useful for looking up specific recipes such as deep links, scenes, or multiple back stacks.
Requirements
No scripts; instructions and reference documents only. Requires an Android development context with Jetpack Compose and Navigation 3, and optionally Hilt, Dagger, or Koin for the modularization recipes.

Migration guide

  • Navigation 2 to Navigation 3 migration guide [blocked]: Step-by-step guide to migrate an Android application from Navigation 2 to Navigation 3, covering dependency updates, route changes, state management, and UI component replacements.

Requirements

  • Guide: Migrate to type-safe navigation in Compose [blocked] : Step-by-step guide to migrating an Android application from string-based navigation to Type-Safe Navigation in Jetpack Compose using Jetpack Navigation 2.

Developer documentation

  • Navigation 3 [blocked]. Search documentation for more information on basics, saving and managing navigation state, modularizing navigation code, creating custom layouts using Scenes, animating between destinations, or applying logic or wrappers to destinations.

Recipes

Code examples showcasing common patterns.

Basic API usage

  • Basic [blocked]: Shows most basic API usage.
  • Saveable back stack [blocked]: Shows basic API usage with a persistent back stack.
  • Entry provider DSL [blocked]: Shows basic API usage using the entryProvider DSL.

Common UI

  • Common UI [blocked]: Demonstrates how to implement a common navigation UI pattern with a bottom navigation bar and multiple back stacks, where each tab in the navigation bar has its own navigation history.

Deep links

  • Static URI [blocked]: Shows how to handle simple static URI deep links.
  • URI with Arguments [blocked]: Shows how to parse path and query arguments from a deep link.
  • Synthetic BackStack [blocked]: Shows how to handle deep links with a synthetic back stack.
  • Custom Matcher [blocked]: Shows how to implement custom deep link matching logic.

Scenes

Use built-in Scenes
  • Dialog [blocked]: Shows how to create a Dialog.
Create custom Scenes
  • BottomSheet [blocked]: Shows how to create a BottomSheet destination.
  • List-Detail Scene [blocked]: Demonstrates how to implement adaptive list-detail layouts using the Navigation 3 Scenes API.
  • Two pane Scene [blocked]: Demonstrates how to implement adaptive two-pane layouts using the Navigation 3 Scenes API.

Material Adaptive

  • Material List-Detail [blocked]: Demonstrates how to implement an adaptive list-detail layout using Material 3 Adaptive.
  • Material Supporting Pane [blocked]: Demonstrates how to implement an adaptive supporting pane layout using Material 3 Adaptive.

Animations

  • Animations [blocked]: Shows how to override the default animations for all destinations and a single destination.
  • Conditional Transitions [blocked]: Shows how to implement conditional transition animations.

Common back stack behavior

  • Multiple back stacks [blocked]: Shows how to create multiple top level routes, each with its own back stack. Top level routes are displayed in a navigation bar allowing users to switch between them. State is retained for each top level route, and the navigation state persists config changes and process death.

Conditional navigation

  • Conditional navigation [blocked]: Switch to a different navigation flow when a condition is met. For example, for authentication or first-time user onboarding.

Lifecycle

  • Lifecycle Owner [blocked]: Shows how to use and observe Lifecycle in Navigation 3.

Architecture

  • Modularized navigation code (Hilt) [blocked]: Demonstrates how to decouple navigation code into separate modules using Hilt or Dagger for DI.
  • Modularized navigation code (Koin) [blocked]: Demonstrates how to decouple navigation code into separate modules using Koin for DI.

Working with ViewModel

Passing navigation arguments
  • Basic ViewModel [blocked] : Navigation arguments are passed to a ViewModel constructed using viewModel()

Returning results

  • Returning Results as Events [blocked] : Returning results as events to content in another NavEntry
  • Returning Results as State [blocked] : Returning results as state stored in a CompositionLocal

Source and attribution

Source:android/skillsinnavigation/navigation-3at commit42dc227

License: Complete terms in LICENSE.txt

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal

More from android/skills

Wear Compose M3

android

Guides building, updating and migrating Wear OS Compose Material3 apps, with canonical component samples and version rules.

Software Development7.7Kupdated 13 days ago

Display Glasses With Jetpack Compose Glimmer

android

Provides guidelines for developing projected Android XR apps for display glasses using the Jetpack Compose Glimmer UI toolkit. This skill covers foundational Glimmer design principles, workflows for implementing Jetpack Compose Glimmer, and interaction models for the glasses form factor. Use this skill to build an Android XR Augmented Experience app with Jetpack Compose Glimmer that adheres to the Glimmer design system for optimized glasses styling.

Awaiting classification7.7Kupdated 13 days ago

Play Billing Library Version Upgrade

android

Guides upgrading an Android project from a legacy Google Play Billing Library version to the latest stable release.

Software Development7.7Kupdated 13 days ago

Leanback To Compose Tv Migration

android

Provides instructions and architectural patterns for migrating Android TV applications from legacy Leanback UI Toolkit, Android Views, or Support Fragments to Jetpack Compose for TV (androidx.tv). Use this skill for Leanback to Compose migrations, including browse screen, settings screen, authentication screen, login screen, or video playback screen migrations, or when replacing BrowseSupportFragment, LeanbackSettingsFragment, PreferenceFragment, BaseLeanbackPreferenceFragmentCompat, VideoSupportFragment, GuidedStepSupportFragment, SearchSupportFragment, VerticalGridSupportFragment, Presenter, ArrayObjectAdapter, or CursorMapper with modern Compose equivalents, implementing immersive carousels with focus memory, Media3 video playback with PlayerSurface, or custom 10-foot hero layouts.

Awaiting classification7.7Kupdated 13 days ago

Testing Setup

android

Analyzes an Android project's testing setup and installs testing frameworks, harnesses and tests for unit, UI, screenshot and end-to-end coverage.

Software Development7.7Kupdated 13 days ago

Android Profiler

android

Guides Android performance profiling: recording system traces, heap dumps and method recordings, and analyzing them with Perfetto SQL.

Software Development7.7Kupdated 13 days ago