setTabsFromPagerAdapter

Deprecated

Use setupWithViewPager to link a TabLayout with a ViewPager together. When that method is used, the TabLayout will be automatically updated when the PagerAdapter is changed.