Android Jetpack Navigation and Fragment example Navigation is the new way for developers to navigate their application. Navigation component is a suite of libraries, tooling and guidance for in-app navigation. Android Jetpack's Navigation component helps you implement navigation, from simple button clicks to more complex patterns, such as app bars and the navigation drawer. In this tutorial I will show you how to use Navigation, NavHostFragment and NavGraph. In this tutorial I have covered -
- Creating a project with Kotlin and androidX
- Navigation Component dependencies
- Creating a navigation graph
- NavHostFragment (Navigaton Host Fragment)
- Adding fragments to the navigation graph
- NavController and navigating between fragments using kotlin
- Working with Fragments with kotlin
- Add and make transition of fragments