Add several back stack entries within single fragment transaction

Viewed 672

I need to display a Fragment with 2 fragments before it being added into back stack. However addToBackStack method belongs to FragmentTransaction so I cannot add all three of them in the single FragmentTransaction cause all three of them will be removed by back button click. But if I use three different FragmentTransations then until the third fragment becomes visible two previous ones become visible to the user too.

Is there a way I can add three Fragments into back stack without making first two of them visible during transaction?

2 Answers
Related