passing data between fragments by Safe args. Navigation component tutorial. Android studio | Kotlin.
here I will tell you how to be an android developer by building simple Android apps on Android Studio, using the Kotlin language.
In this video, I will show you how to use The Navigation Component safe args to pass the data between fragments in your apps.
If you like the content, buy me a coffee by clicking on this link. ☕☕☕
https://www.buymeacoffee.com/mkrdeveloper
You can find the source codes of this video here:
https://github.com/MohsenMashkour/NavigationComponentExapmle
————————————————-
dependency:
buildscript {
repositories {
google()
}
dependencies {
def nav_version = « 2.5.3 »
classpath « androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version »
}
}
————————————————-
plugin:
id ‘androidx.navigation.safeargs.kotlin’
————————————————-
Related videos:
————————————————-
Timestamps:
00:10 Introduction
00:50 Changes in layout
01:13 Adding dependencies
03:00 Make an argument and navigate from the first fragment to the second fragment
06:00 Extracting the data in the second fragment
07:47 Testing the App
08:15 Ending
—————————————————
Join me on social media:
MkrDeveloper website:
https://www.mkrdeveloper.com/.
MkrDeveloper Instagram page:
https://www.instagram.com/mkr.developer/
MkrDeveloper Telegram Chanel:
https://t.me/Mkr_Developer
MkrDeveloper Discord server:
https://discord.gg/ZZv8NaQW
.
.
.
.
#Android
#kotlin
#android_studio
#kotlin_course
#mkr_developer
#android_tutorial_beginners
#android_developers
#Navigation_component
#safe_args_navigation_component
#اندروید
#برنامه_نویسی_اندروید
#کاتلین
Views :22
android studio