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);
    }
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

@param isNoTitleMode       if no title mode is required
@param bottomNavigationTab Tab item
@param currentItem         data structure for tab item
@param itemWidth           tab item in-active width
@param itemActiveWidth     tab item active width