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

设置了tablayout.setCurrentTab(currentIndex, false);但是不生效 #78

Closed
weinierfei opened this issue Oct 24, 2016 · 7 comments
Closed

Comments

@weinierfei
Copy link

weinierfei commented Oct 24, 2016

    tablayout.setTabSpaceEqual(true);
    searchViewpaer.setOffscreenPageLimit(mFragmentList.size());
    searchViewpaer.setAdapter(new SearchPagerAdapter(getSupportFragmentManager()));
    tablayout.setViewPager(searchViewpaer, mTabs);
    tablayout.setCurrentTab(currentIndex, false);

版本:2.0.8;
设置了tablayout.setCurrentTab(currentIndex, false);但还是会划过中间界面,是我用的不对么?

@H07000223
Copy link
Owner

好像没有跳过中间的方法

@weinierfei
Copy link
Author

那你看今日头条,凤凰新闻他们的那个,是怎么实现的

@H07000223
Copy link
Owner

我试了下~要改源码里面的
image

1 similar comment
@H07000223
Copy link
Owner

我试了下~要改源码里面的
image

@weinierfei
Copy link
Author

嗯哼;果然是这样的;那啥时候更新下呀,连同allowBackup和supportsRtl一起处理了呗

@H07000223
Copy link
Owner

等下个版本我找个时间

@H07000223
Copy link
Owner

修了~更新到2.1.0

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

No branches or pull requests

2 participants