Back to Browse

Fragments - Part 7, Dissecting back stack

26.6K views
Dec 8, 2017
6:59

In this video, we dive deep into the concept of the fragment back stack in Android development. We'll explore how fragment transactions work, why back stack count increases with operations like `replace`, and why the back button sometimes leads to unexpected behavior. By dissecting the transaction back stack, we clarify misconceptions around add, remove, and replace operations, showing that the back stack actually records transactions, not fragments. The tutorial includes: - Explanation of the fragment back stack concept - Understanding add, remove, and replace transactions - Demo of back stack entries and transaction flow - Insights into `popBackStack` to manage back stack entries Stay tuned to gain a solid understanding of fragment management and enhance your Android development skills! #AndroidDevelopment #Fragments #BackStack #FragmentTransactions #ReplaceOperation #AndroidTutorial #Programming #AppDevelopment #BackButtonBehavior #popBackStack Follow me on Twitter: https://twitter.com/anildeshpande Github link to Demo Source code: https://github.com/AnilDeshpande/FragmentsDemo/tree/dissecting-backstack Chapters 0:00 - Introduction to Fragment Back Stack 0:30 - Fragment Transaction Basics 1:10 - Adding and Removing Fragments 2:10 - Replace Operation Explained 3:00 - Demo of Back Stack Entries 5:00 - Reducing Back Stack Count

Download

0 formats

No download links available.

Fragments - Part 7, Dissecting back stack | NatokHD