code: public void setViewPager(ViewPager viewPager) {
          mTabStrip.removeAllViews();
  
          mViewPager = viewPager;
          if (viewPager != null) {
              viewPager.setOnPageChangeListener(new InternalViewPagerListener());
              populateTabStrip();
          }
      }
docs: Sets the associated view pager. Note that the assumption here is that the pager content
  (number of tabs and tab titles) does not change after this call has been made.