ViewPager与TabLayout滑动到指定位置
mTl就是Tablayout,这样滑动后,ViewPager也会滑动,因为他们是联动的mTl.setupWithViewPager(mVpSetting);mTl.postDelayed(new Runnable() {@Overridepublic void run() {mTl.getTabAt(mCurrentPosition).select();}
·
mTl就是Tablayout,这样滑动后,ViewPager也会滑动,因为他们是联动的
mTl.setupWithViewPager(mVpSetting);
mTl.postDelayed(new Runnable() {
@Override
public void run() {
mTl.getTabAt(mCurrentPosition).select();
}
},100);
更多推荐
已为社区贡献17条内容
所有评论(0)