+
Skip to content

anandwana001/nav3-recipes

 
 

Repository files navigation

Navigation 3 - Code recipes

Jetpack Navigation 3 is a library for app navigation. This repository contains recipes for how to use its APIs to implement common navigation use cases.

Recipes

These are the recipes and what they demonstrate.

Basic API examples

Layouts and animations

  • Material adaptive: Shows how to use a Material list-detail layout.
  • Custom Scene: Shows how to create a custom layout using a Scene and SceneStrategy.
  • Animations: Override the default animations for all destinations and a single destination.

Common use cases

  • Common navigation UI: A common navigation toolbar where each item in the toolbar navigates to a top level destination.
  • Conditional navigation: Switch to a different navigation flow when a condition is met. For example, for authentication or first-time user onboarding.

Planned

  • Deeplinks: Create and handle deeplinks to specific destinations
  • Android XR: Custom navigation and layout behavior for Android XR
  • Returning a result from a destination: Return a result to a previous destination

Instructions

Clone this repository and open the root folder in Android Studio. Each recipe is contained in its own package.

Contributing

We'd love to accept your contributions. Please follow these instructions.

License

Copyright 2025 The Android Open Source Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

Implement common use cases with Jetpack Navigation 3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 100.0%
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载