I have a setup like the navigation graph below. The 3 fragments in the middle are very similar and all extend a BaseFragment
class.
What I would like to do is to make BaseFragment
abstract, so that my navigation graph can be reduced to the figure below.
Is this even possible? It would drastically reduce the clutter of my navigation graph, because there will eventually be upwards of 20 children. However, I think this improvement would require me to instantiate an abstract class, which isn't possible.