Navigation Component - Android Studio Tutorial

Stevdza-San
Stevdza-San
171.2 هزار بار بازدید - 4 سال پیش - 🏆 My Online Courses ⭐Discount
🏆 My Online Courses
⭐Discount Coupon: LAUNCH-STEVDZA-SAN
https://stevdza-san.com

🐱‍👤 Wanna become a member? Join!
@stevdzasan

📸 Instagram
Instagram: stevdza_san



Navigation refers to the interactions that allow users to navigate across, into, and back out from the different pieces of content within your app. 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.


The Navigation component consists of three key parts that are described below:

   * Navigation graph: An XML resource that contains all navigation-related information in one centralized location. This includes all of the individual content areas within your app, called destinations, as well as the possible paths that a user can take through your app.
   * NavHost: An empty container that displays destinations from your navigation graph. The Navigation component contains a default NavHost implementation, NavHostFragment, that displays fragment destinations.
   * NavController: An object that manages app navigation within a NavHost. The NavController orchestrates the swapping of destination content in the NavHost as users move throughout your app.

As you navigate through your app, you tell the NavController that you want to navigate either along a specific path in your navigation graph or directly to a specific destination. The NavController then shows the appropriate destination in the NavHost.
4 سال پیش در تاریخ 1399/01/14 منتشر شده است.
171,238 بـار بازدید شده
... بیشتر