How to Close a fragment by pressing the back button (add to back stack)? Android Studio | Kotlin

Опубликовано: 18 Ноябрь 2022
на канале: Mohsen Mashkour
3,199
17

In this video, I will show you how to close a Fragment by pressing the back button and using the addToBackstack.

If you like the content, buy me a coffee by clicking on this link.☕☕☕
https://www.buymeacoffee.com/mkrdevel...

You can find the source codes of this video here: https://github.com/MohsenMashkour/fra...


Related videos:
Button:    • How to use a Button , #setOnClickList...  
TextView:    • How to use a TextView #setText #getTe...  
How to use a fragment:    • How to use Fragments in Android studi...  


Everything about fragments:
   • everything about fragments  

Kotlin beginner course:
   • Android Beginner Course 2023  

---------------------------------------------------
Timestamps:
00:00 Introduction
01:35 Add to back stack on the first fragment
02:00 Test the app
02:42 Add to back stack on the second fragment
02:58 Test the app
03:48 Ending

---------------------------------------------------
My website:
https://www.mkrdeveloper.com/
.
.
.
.
My Instagram:
  / mkr.developer  
.
.
.
.
#Android
#kotlin
#kotlin_course
#android_tutorial_beginners
#android_developers
#fragments
#اندروید
#برنامه_نویسی_اندروید
#کاتلین


Смотрите видео How to Close a fragment by pressing the back button (add to back stack)? Android Studio | Kotlin онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Mohsen Mashkour 18 Ноябрь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 3,199 раз и оно понравилось 17 людям.