Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于tab点击的建议 #31

Closed
liao10108180 opened this issue Jul 13, 2016 · 2 comments
Closed

关于tab点击的建议 #31

liao10108180 opened this issue Jul 13, 2016 · 2 comments

Comments

@liao10108180
Copy link

大神你好,我最近做项目用到了你的Tab,但是有一点瑕疵,当viewpage里有多个页面,tab中点击到某个界面时候,需要滑过中途的界面。
希望大神能够增加viewpager.setCurrentItem(int item, boolean smoothScroll)这个方法。
期待改进

@MIkeeJY
Copy link

MIkeeJY commented Jul 13, 2016

这个自己在代码里设置就好咯~

H07000223 added a commit that referenced this issue Jul 26, 2016
H07000223 added a commit that referenced this issue Jul 26, 2016
@yangqb
Copy link

yangqb commented Apr 28, 2020

请问这个是在tab点击监听设置吗?,我这个设置后还是会中途划过很多页面。
slidingTabLayout.setOnTabSelectListener(new OnTabSelectListener() {
@OverRide
public void onTabSelect(int position) {
mViewPager.setCurrentItem(position, false);
}

        @Override
        public void onTabReselect(int position) {
        }
    });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants