【工具类】超级好用简单的RecyclerView适配器,Kotlin打造,链式结构使用
RecyclerView适配器,链式结构使用。
Kotlin,Androidx
项目连接
1.简单使用
构造器 -> 数据 -> 布局 -> 布局设置 -> 创建
Xadapter() -> data() -> layoutId() -> bind() -> create()
//val rv:RecyclerView
rv.adapter = Xadapter<RvDataBean>(this)
.
原创
2020-10-30 13:50:42 ·
144 阅读 ·
0 评论