У нас вы можете посмотреть бесплатно Navigation Drawer with Fragments - Navigation Component in Android Studio или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
This is the fourth part of the complete mini course on navigation component. In this tutorial, you will learn how to create navigation drawer using navigation component. There are two main reasons to use navigation component for navigation drawer: very lightweight and very performant. In this tutorial, you will learn the following topics 1) Implement navigation component. 2) Create navigation graph. 3) Implement NavHostFragment or container. 4) NavController 5) Fragments 6) Drawer Menu 7) AppBarConfiguration Add Dependency ****************** dependencies { def nav_version = "2.3.0-alpha04" classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version" } Compile Options ****************** compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = JavaVersion.VERSION_1_8.toString() } Kotlin Plugin ************** apply plugin: "androidx.navigation.safeargs.kotlin" The navigation component consists of three keywords that are described as bellow: 1- Navigation Graph: is a resource file that contains all of your destinations and actions. The graph represents all of your app's navigation paths. 2- NavHost: is an empty container that displays destinations from your navigation graph. The navigation component contains a default NavHost implementation, NavHostFragment, that displays fragment destinations. 3- NavController: its an object that manages app navigation within a NavHost. This would help to replace one fragment with another fragment in the NavHost container. 🔴 Subscribe for more educational tutorials on CodeWithMazn channel! Follow me on Instagram / codewithmazn