0PricingLogin
Jetpack Compose Academy · Lesson

NavController & NavHost

Define your app's navigation graph.

Moving Between Screens

Real apps have many screens. Navigation Compose is the official library that lets you move between them without juggling fragments or activities. 🧭

Add the Dependency

Navigation lives in its own artifact. Add androidx.navigation:navigation-compose to your module's build file before you can use any of it.

dependencies {
    implementation("androidx.navigation:navigation-compose:2.7.7")
}

All lessons in this course

  1. NavController & NavHost
  2. Composable Destinations & Routes
  3. Passing Arguments Between Screens
  4. Back Stack & Deep Links
← Back to Jetpack Compose Academy