how to change tablayout current view position in android

Solutions on MaxInterview for how to change tablayout current view position in android by the best coders in the world

showing results for - "how to change tablayout current view position in android"
Eliza
14 Feb 2018
1void selectPage(int pageIndex){
2    tabLayout.setScrollPosition(pageIndex,0f,true);
3    viewPager.setCurrentItem(pageIndex);
4}