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

你得懒加载不够好,问题如下 #5

Open
ZjianP opened this issue Jan 23, 2018 · 0 comments
Open

你得懒加载不够好,问题如下 #5

ZjianP opened this issue Jan 23, 2018 · 0 comments

Comments

@ZjianP
Copy link

ZjianP commented Jan 23, 2018

你将接口请求放在了setUserVisibleHint()方法中。此时,fragment还没有执行onCreateView()。如果你得接口访问很快,然而布局文件还没有初始化,。在给控件赋值时会报错

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

1 participant