Repository Details
Shared by


HelloGitHub Rating
0 ratings
Free•Apache-2.0
Claim
Discuss
Collect
Share
1.4k
Stars
No
Chinese
Java
Language
No
Active
1
Contributors
6
Issues
No
Organization
None
Latest
169
Forks
Apache-2.0
License
More

深度解耦的 Android 加载组件,特点:
- 深度解耦 App 中全局加载中、加载失败及空数据视图
- 分离全局加载状态视图的实现和使用
- 不需要在每个页面的布局文件中额外添加加载状态视图
- 可用于 Activity,也可用于为某个 View 显示加载状态等
```java
Gloading.initDefault(new GlobalAdapter());
Gloading.Holder holder = Gloading.getDefault().wrap(activity).withRetry(retryTask);
Gloading.Holder holder = Gloading.getDefault().wrap(view).withRetry(retryTask);
//显示加载中的UI状态
holder.showLoading()
//显示加载成功的UI状态
holder.showLoadSuccess()
//显示加载失败的UI状态
holder.showFailed()
//显示加载成功,但数据未空的UI状态
holder.showEmpty()
```
Included in:
Vol.38
Comments
Rating:
No comments yet