I'm trying to wrap my head around how and where i should be setting up my fragments.
Use case senario i'm trying to implement
- I have a mainActivity that has a
bottomNigationView
widget that will open different fragments (fragment A, B and C) - In FragmentB i ask the user to input some information, then they click the
next
button which should should load another fragment lets say called FragmentB2 - FragmentB2 should carry over some information that the user imputed from FragmentB
My question is, should i be making the fragment transactions of both fragments B and B2 in the mainActivity? Since i read online that it's not good practice to have nested fragments.
Currently, what i have is inside of FragmentB, i start a fragment transactions when the next
button is clicked, so that it creates and goes to FragmentB2. I think this is whats called a nested Fragment, correct?