MoreType
new method to build data in RecyclerView with Kotlin!
Dependency
or
Update log
v0.2.5
- fix fix payloads judge error
- update support lib version
Usage
Keyword: Data driven view 【数据驱动视图】
Step 1. create a data model class, like:
or
Step 2. create a class (xxxViewHolder) extends abstract class MoreViewHolder<T : Any>()
, like:
Step 3. register
and attach
to recyclerview
in Any where you build list, like:
Upon completion of these three steps, a list based on the [Data Driven View] has been completed.