Skip to content

Commit

Permalink
update README for v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
luckybilly committed Aug 15, 2019
1 parent 2225eec commit a6afa17
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README-zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,13 @@ Gloading.Holder holder = Gloading.getDefault().wrap(view);
Gloading.Holder holder = Gloading.getDefault().wrap(view).withRetry(retryTask);
```

4.1 如果父容器为 `RelativeLayout` (或`ConstraintLayout`),用cover可以保持与同级其它控件之间的关联关系(since: v1.1.0)
```java
Gloading.Holder holder = Gloading.getDefault().cover(view);
//
Gloading.Holder holder = Gloading.getDefault().cover(view).withRetry(retryTask);
```

5、 使用`Holder`来显示各种加载状态

```java
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,16 @@ Gloading.Holder holder = Gloading.getDefault().wrap(view);
Gloading.Holder holder = Gloading.getDefault().wrap(view).withRetry(retryTask);
```

3.1.1 Cover something within `RelativeLayout` (or `ConstraintLayout`) (since: v1.1.0)

```java
//Gloading will create a FrameLayout to cover it
Gloading.Holder holder = Gloading.getDefault().cover(view);

//with load failed retry task
Gloading.Holder holder = Gloading.getDefault().cover(view).withRetry(retryTask);
```

3.2 Show status views for loading/loadFailed/empty/... by Gloading.Holder

```java
Expand Down

0 comments on commit a6afa17

Please sign in to comment.