You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs-source/src/en/library/hikage-extension-betterandroid.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ You can view the KDoc [click here](kdoc://hikage-extension-betterandroid).
65
65
66
66
### Adapter Extension
67
67
68
-
Hikage provides layout extension function for BetterAndroid's [Adapter](https://betterandroid.github.io/BetterAndroid/en/library/ui-component#adapter),
68
+
Hikage provides layout extension function for BetterAndroid's [Adapter](https://betterandroid.github.io/BetterAndroid/en/library/ui-component-adapter),
69
69
you can use the Hikage layout directly on the original extension method of the adapter.
70
70
71
71
It uses the `ViewHolderDelegate` provided by BetterAndroid to create extension methods.
@@ -76,9 +76,9 @@ Here is a simple example based on `RecyclerView`.
76
76
77
77
```kotlin
78
78
// Assume this is the dataset you need to bind to.
79
-
val listData = ArrayList<CustomBean>()
79
+
val listData = ArrayList<MyEntity>()
80
80
// Create and bind to a custom RecyclerView.Adapter.
81
-
val adapter = recyclerView.bindAdapter<CustomBean> {
81
+
val adapter = recyclerView.bindAdapter<MyEntity> {
82
82
onBindData { listData }
83
83
onBindItemView(
84
84
Hikageable = {
@@ -87,8 +87,8 @@ val adapter = recyclerView.bindAdapter<CustomBean> {
0 commit comments