Answers for "how to change tablyt tab according to viewpager position in android"

0

how to change tablayout current view position in android

void selectPage(int pageIndex){
    tabLayout.setScrollPosition(pageIndex,0f,true);
    viewPager.setCurrentItem(pageIndex);
}
Posted by: Guest on March-21-2020

Code answers related to "how to change tablyt tab according to viewpager position in android"

Code answers related to "Swift"

Browse Popular Code Answers by Language