Skip to content

Commit 7430983

Browse files
Update docs
1 parent 97a3992 commit 7430983

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/zh/delegate.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,14 @@ setToolbar("title")
260260
updateToolbar { title = "Loading..." }
261261
```
262262

263+
如果有扩展属性不好配置的需求,比如开启或关闭动画,可以在 `ToolbarViewDelegate` 自行增加对应功能的函数,然后在更新的时候调用。
264+
265+
```kotlin
266+
updateView<ToolbarViewDelegate>(ViewType.TITLE) {
267+
startAnimation()
268+
}
269+
```
270+
263271
## 在顶部添加控件
264272

265273
可添加多个控件,比如添加标题栏和搜索栏,搜索栏需要另写一个类继承 `LoadingStateView.ViewDelegate`。

0 commit comments

Comments
 (0)