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

view呈现问题,请教 #10

Closed
jesse920524 opened this issue Aug 3, 2016 · 1 comment
Closed

view呈现问题,请教 #10

jesse920524 opened this issue Aug 3, 2016 · 1 comment

Comments

@jesse920524
Copy link

当我打开一个Activity时,我想要先显示loading动画,后台线程执行网络请求逻辑
当请求结束时,loading动画消失,显示正常的layout.
请问如何实现这样的效果?

目前我的方案是使用自定义ProgressDialog,
或许还可以通过FrameLayout嵌套progressBar和其他view,通过visibility属性来控制.
是否存在更好的解决方案?
新手问题,见笑了.

@dinuscxj
Copy link
Owner

dinuscxj commented Aug 3, 2016

@jesse920524 你使用LoadingView就可以,也可以根据LoadingView改造成为自己需要的组件

@dinuscxj dinuscxj closed this as completed Aug 3, 2016
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