aboutsummaryrefslogtreecommitdiff
path: root/adapter/README.md
blob: 6d597771ef87d44d8d106c0f6aab4341d114112b (plain)
1
2
3
4
5
6
7
8
9
10
11
# KAU :adapter

Collection of kotlin bindings and custom IItems for [Fast Adapter](https://github.com/mikepenz/FastAdapter)

## KauIItems

Extends `AbstractIItems` and contains the arguments (layoutRes, ViewHolder lambda, idRes)
In that order. Those variables are used to override the default abstract functions.
If a layout is only used for one item, it may also be used as the id, which you may leave blank in this case.
The ViewHolder lambda is typically of the form `{ ViewHolder(it) }`
Where you will have a nested class `ViewHolder(v: View) : RecyclerView.ViewHolder(v)`