In the bottom of the activation I use BottomNavigationView . It contains two tabs, each of which contains its own fragment. These two fragments contain TabLayout on top, for each fragment it is different. In TabLayout there can be several tabs, and each tab contains its own fragment with content.

Question. How to implement it architecturally. Create Tab fragments from BottomNavigationView fragments. Or make the BottomNavigationView fragments activities inside the main parent activity. And then I heard a lot where the connectedness of fragments is evil, and it is not good to launch a fragment from a fragment.

enter image description here

    1 answer 1

    It may not answer your question, but there is a warning in the Material Guide:

    Caution.

    Bottom of the bottom line. The tabs are the most common and disconnected from each other.

    An example of how not to do :)

    If the case, then the recommendations from Google for Jetpack Navigation is one activation, and each type of content is a separate fragment.