I have the activity main and a bottom bar navigation with 4 items. When I start the application, it starts, it shows the activity of the first item. I wanted to get it "started" from item 3. Is it possible to do this? How?
I have the activity main and a bottom bar navigation with 4 items. When I start the application, it starts, it shows the activity of the first item. I wanted to get it "started" from item 3. Is it possible to do this? How?
Statement:
AHBottomNavigationViewPager viewPagerBottom;
AHBottomNavigation bottomNavigation;
To start in the chosen fragment do this in OnCreate or where it has already identified the items:
viewPagerBottom.setCurrentItem(posição);
To follow the selection of the corresponding button you do:
bottomNavigation.setCurrentItem(posição);