ncapdevi / FragNav

An Android library for managing multiple stacks of fragments
1.5k stars 220 forks source link

Adding fragments to a different container layout #92

Closed MostafaNasiri closed 6 years ago

MostafaNasiri commented 6 years ago

Hi First of all thank you for making this great library In my app I have three tabs with three root fragments. Inside one of my root fragments I need to be able to add more fragments and that fragments should be added to the backstack related to the current root fragment but it seems it's not possible since I can only push fragments to one container layout with your library. So the question is how can I add fragments to a specific backstack (lets say TAB1's backstack) but with a different container layout? Thanks

ncapdevi commented 6 years ago

In that case you'll just want to create another instance of FragNavController that manages that new container layout. Then you can do whatever you want regarding that stack as well as the other controller's stack.