BaseRecyclerViewAdapterHelper
BaseRecyclerViewAdapterHelper copied to clipboard
BRVAH:Powerful and flexible RecyclerAdapter
kotlin想坚持使用的可以参考#3561 [BRV](https://github.com/liangjingkanji/BRV/)比较适合databinding,一直在维护,作者解答很快,可以试试😉 [使用文档](https://liangjingkanji.github.io/BRV/)也很全,和作者的[net框架](https://liangjingkanji.github.io/Net/)一起使用是真的方便快捷😁
**Describe the bug** A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behavior: 1. Go to '...' 2. Click on '....' 3. Scroll...
3.0.4版本DiffUtil,如果只修改了其中一个Item的某个字段的内容,则不会刷新页面。DiffCallBack中areContentsTheSame方法返回内容相同,而且oldItem和newItem的数据尽然都是修改过后的。 如图,已经修改了amount字段从3522到352,但日志显示新旧数据尽然都是修改后的352。  DiffCallback:  设置数据(result为数据库获取的结果): 
代码: override fun convert(holder: BaseDataBindingHolder, item: JsonBean.DataBean) { holder.dataBinding?.data = item } override fun getDefItemCount(): Int { return Int.MAX_VALUE } override fun getItem(position: Int): JsonBean.DataBean { return if (position >=...
1.使用 BaseNodeAdapter 实现分组效果; 2.动态删除item,调用 mAdapter.removeAt(position) 或者 mAdapter.remove(Item) ,如果是最后一个元素会数组越界; 越界位置在 BaseNodeAdapter 如下位置: 
子view点击事件不响应
addChildClickViewIds方法也没有。 问题已解决,在 convert 里用 helper.addOnClickListener() 添加 child 的 id 。
**Describe the bug** A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behavior: 1. Go to '...' 2. Click on '....' 3. Scroll...
**Describe the bug** A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behavior: 1. Go to '...' 2. Click on '....' 3. Scroll...
没找到对应的样例,之前的2.0代码不能用