public void populateBottomTabItems(@NonNull BottomTabsBuilder builder){
  if (mContainer.getChildCount() >= MIN_BOTTOM_NAVIGATION_ITEMS) {
    checkBottomItemGuidelines(mContainer.getChildCount());
  }
  List<BottomNavigationItem> build=builder.build();
  for (int i=0; i < build.size(); i++) {
    BottomNavigationItem item=build.get(i);
    item.setPosition(i);
    addBottomNavigationItem(item);
  }
  updateBottomNavViews();
  selectTabView();
}

public void populateBottomTabItems ( @ NonNull BottomTabsBuilder builder ) { if ( mContainer . getChildCount ( ) >= MIN_BOTTOM_NAVIGATION_ITEMS ) { checkBottomItemGuidelines ( mContainer . getChildCount ( ) ) ; } List < BottomNavigationItem > build = builder . build ( ) ; for ( int i = 0 ; i < build . size ( ) ; i ++ ) { BottomNavigationItem item = build . get ( i ) ; item . setPosition ( i ) ; addBottomNavigationItem ( item ) ; } updateBottomNavViews ( ) ; selectTabView ( ) ; }
convinient way to populate bottom navigation layout using bottomtabsbuilder
