| 接口 | 说明 |
|---|---|
| Gloading.Adapter |
Status view to show current page loading status
|
| 类 | 说明 |
|---|---|
| Gloading |
manage loading status view
usage:
//if set true, logs will print into logcat
Gloading.debug(trueOrFalse);
//init the default loading status view creator (
Gloading.Adapter)
Gloading.initDefault(adapter);
//wrap an activity. return the holder
Holder holder = Gloading.getDefault().wrap(activity);
//wrap an activity and set retry task. return the holder
Holder holder = Gloading.getDefault().wrap(activity).withRetry(retryTask);
holder.showLoading() //show loading status view by holder
holder.showLoadSuccess() //show load success status view by holder (frequently, hide gloading)
holder.showFailed() //show load failed status view by holder (frequently, needs retry task)
holder.showEmpty() //show empty status view by holder. |
| Gloading.Holder |
Gloading holder
create by
Gloading.wrap(Activity) or Gloading.wrap(View)
the core API for showing all status view |