static void bindTabWithData ( BottomNavigationItem bottomNavigationItem , BottomNavigationTab bottomNavigationTab , BottomNavigationBar bottomNavigationBar ) { Context context = bottomNavigationBar . getContext ( ) ; bottomNavigationTab . setLabel ( bottomNavigationItem . getTitle ( context ) ) ; bottomNavigationTab . setIcon ( bottomNavigationItem . getIcon ( context ) ) ; int activeColor = bottomNavigationItem . getActiveColor ( context ) ; int inActiveColor = bottomNavigationItem . getInActiveColor ( context ) ; if ( activeColor != Utils . NO_COLOR ) { bottomNavigationTab . setActiveColor ( activeColor ) ; } else { bottomNavigationTab . setActiveColor ( bottomNavigationBar . getActiveColor ( ) ) ; } if ( inActiveColor != Utils . NO_COLOR ) { bottomNavigationTab . setInactiveColor ( inActiveColor ) ; } else { bottomNavigationTab . setInactiveColor ( bottomNavigationBar . getInActiveColor ( ) ) ; } if ( bottomNavigationItem . isInActiveIconAvailable ( ) ) { Drawable inactiveDrawable = bottomNavigationItem . getInactiveIcon ( context ) ; if ( inactiveDrawable != null ) { bottomNavigationTab . setInactiveIcon ( inactiveDrawable ) ; } } bottomNavigationTab . setItemBackgroundColor ( bottomNavigationBar . getBackgroundColor ( ) ) ; BadgeItem badgeItem = bottomNavigationItem . getBadgeItem ( ) ; if ( badgeItem != null ) { badgeItem . bindToBottomTab ( bottomNavigationTab ) ; } }
Used to get set data to the Tab views from navigation items