private void setUpTab ( boolean isNoTitleMode , BottomNavigationTab bottomNavigationTab , BottomNavigationItem currentItem , int itemWidth , int itemActiveWidth ) { bottomNavigationTab . setIsNoTitleMode ( isNoTitleMode ) ; bottomNavigationTab . setInactiveWidth ( itemWidth ) ; bottomNavigationTab . setActiveWidth ( itemActiveWidth ) ; bottomNavigationTab . setPosition ( mBottomNavigationItems . indexOf ( currentItem ) ) ; bottomNavigationTab . setOnClickListener ( new OnClickListener ( ) { @ Override public void onClick ( View v ) { BottomNavigationTab bottomNavigationTabView = ( BottomNavigationTab ) v ; selectTabInternal ( bottomNavigationTabView . getPosition ( ) , false , true , false ) ; } } ) ; mBottomNavigationTabs . add ( bottomNavigationTab ) ; BottomNavigationHelper . bindTabWithData ( currentItem , bottomNavigationTab , this ) ; bottomNavigationTab . initialise ( mBackgroundStyle == BACKGROUND_STYLE_STATIC ) ; mTabContainer . addView ( bottomNavigationTab ) ; }
Internal method to setup tabs