In this video we continue with the discussion of FragmentTransaction back stack. To come to know that we actually remove the entry from a the transaction back stack we have to use the popBackStack() method of the FragmentManager. And to control the death of the popping of the back stack there are two more over overloaded methods.
One overloaded popBackstack has two integer argument. Another overloaded popBackstack has a string and integer argument. The second argument in both method correspond to 0 and POP_BACK_STACK_INCLUSIVE values. Watch video for more details.
You can follow me on Twitter: https://twitter.com/anilvdeshpande
Github link to source code: https://github.com/AnilDeshpande/FragmentsDemo/tree/fragment-add-replace
Download
0 formats
No download links available.
Fragments - Part 8, Dissecting Back stack further | NatokHD