Skip to content

Commit

Permalink
docs: 更新开发文档
Browse files Browse the repository at this point in the history
  • Loading branch information
liangjingkanji committed Aug 8, 2023
1 parent 48fe08f commit 892abeb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions docs/lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ rv.linear().setup {

## 重写

BindingAdapter是`open class` 可以被继承重写, 任何没有提供的函数回调可以通过继承或者匿名类实现 <br>
任何没有提供的方法回调可继承`BindingAdapter`复写

```kotlin
binding.rv.linear().adapter = object : BindingAdapter() {
Expand Down Expand Up @@ -80,7 +80,4 @@ data class SimpleModel(var name: String = "BRV") : ItemAttached {
}

}
```

当然直接继承BindingAdapter也可以实现

```

0 comments on commit 892abeb

Please sign in to comment.