TAB1 TAB2 TAB3
| | |
FragmentA FragmentC FragmentE
| | |
FragmentB FragmentD FragmentF
I want my user interface to be layed out as shown above. I have read about how fragments work and it looks like I should be able to implement a user interface that allows me to switch between tabs such that each tab has a fragment and selecting something on a fragment will cause another fragment to be displayed.
Now the problem: I do not see how I can maintain different fragment stacks within each tab. What I want is to be able to go from fragmentD to FragmentC when using the back button within Tab2. Switching to Tab1 should show me FragmentB and allow me to navigate to FragmentA using the BACK button. Is there a way to have multiple fragment stacks like how I have described?