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

有点小bug #1

Open
DavidZhong003 opened this issue Nov 28, 2016 · 6 comments
Open

有点小bug #1

DavidZhong003 opened this issue Nov 28, 2016 · 6 comments

Comments

@DavidZhong003
Copy link

使用tablayout时候切换底部标签,初始化时候的确只加载了一个Fragment,但当我们切到最后一个时候,他会把之前的Fragment都创建。
11-28 10:31:31.850 26215-26215/com.doive.zhong.m_news E/BlankFragment: onCreate: 0
11-28 10:31:31.900 26215-26215/com.doive.zhong.m_news E/BlankFragment: onCreate: 0
11-28 10:31:31.950 26215-26215/com.doive.zhong.m_news E/BlankFragment: onCreate: 0

@lianghanzhen
Copy link
Owner

Did you mark your fragments as Laziable?

@DavidZhong003
Copy link
Author

you mean implements Laziable interface ? I did

@lianghanzhen
Copy link
Owner

lianghanzhen commented Nov 28, 2016 via email

@DavidZhong003
Copy link
Author

can you give me your e-mail ?

@lianghanzhen
Copy link
Owner

lianghanzhen commented Nov 29, 2016 via email

@Janky-Young
Copy link

这个是因为切换界面的时候pager.setCurrentItem(3);有viewpager却换动画
取消动画就可以了pager.setCurrentItem(3,false);

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

3 participants