- In ActivityMain file create Bottom Nav tags and in MainActivity java file Define the No of Fragments you want to create.
- In this app there are three Bottom Nav bars , so I have create 3 Fragements name - BlankFragment, BlankFragment2, BlankFragment3.
- Also you need to define a Menu Resource file for giving name and icons to the bottom nav bar.
- Then I have added the Tablayout in the first Bottom Nav , so inflate the tab layout in the oncreate of BlangFragment.
- Any no of Tabs can be added in the Tab layout , you have to create the fragment for each Tab and an Adapter java file to combine those tabs.
- Remember that we need to create fragments both for Bottom Navigation Bars as well as Tab layouts . Anything you wish to display will be shown in fragments
This layout is used when you want to display the large amount of data in a very ordered way. Also you may redraft the design of Tablayout and Bottom Navigations as per your choice.