BaseRecyclerViewAdapterHelper icon indicating copy to clipboard operation
BaseRecyclerViewAdapterHelper copied to clipboard

BRVAH:Powerful and flexible RecyclerAdapter

Results 208 BaseRecyclerViewAdapterHelper issues
Sort by recently updated
recently updated
newest added

![1702452376757](https://github.com/CymChad/BaseRecyclerViewAdapterHelper/assets/39894304/4cc8c4da-3216-4711-aeef-b6fbb9d9d22c) ![1702452376770](https://github.com/CymChad/BaseRecyclerViewAdapterHelper/assets/39894304/483fe883-6729-401b-8d22-e3999a29eecb)

库版本:3.0.14 1、问题: 在使用BaseNodeAdapter集成树形结构的数据时(两层结构),父node和子node都添加了addChildClickViewIds,在NodeProvider的onChildClick监听其子控件的点击事件。我发现点击的position是父node和子node关联起来的,当我点击子node下的某个子控件时,想获取父node的下标(getAdapter().findParentNode(node)),此时获取的下标是动态变化的,有item折叠展开时获取的下标都不同,即有item展开时,会把子node的item都算上。 例如:A父node下有2个子node,B父node有1个子node,当点击B父node的子node想获取B父node的下标时,会有两种下标值: 1:A父node不展开的时候,获取到B父node的下标为1; 2:A父node展开时的时候,获取到B父node下标为3; 2、想实现的效果: 当我点击子node的某个子控件时,想通过getAdapter().notifyItemChanged()来单独更新其父node的数据。现在因为获取的position是不固定,所以无法通过notifyItemChanged来实现刷新。只能通过设置整个列表数据,通过notifyDataSetChanged刷新这个列表,有什么好的方法去实现吗?

为什么Android studio 点进库的源码里看不到原始代码,只能看到反编译的代码

private BaseBinderAdapter adapter = new BaseBinderAdapter(); adapter.addItemBinder(ImageUrlBean.class, new ImageItemBinder()) .addItemBinder(VideoBean.class, new VideoItemBinder()) .addItemBinder(FictionBean.class, new ContentItemBinder()); List data = new ArrayList(); data.add(new ImageUrlBean("https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=119713024,2807881900&fm=26&gp=0.jpg")); data.add(new VideoBean("捌佰", "是一部抗日战争神剧来的" + random.nextInt(5) + 10)); data.add(new...

java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionBaseViewHolder{eb6e445 position=8 id=-1, oldPos=15, pLpos:15 scrap [attachedScrap] tmpDetached no parent} androidx.recyclerview.widget.RecyclerView{bd9770c VFED..... ......I. 0,0-1080,2198 #7f0801f0 app:id/vRecycleView}, adapter:com.example.myapplication.NodeSectionAdapter@5786486, layout:androidx.recyclerview.widget.LinearLayoutManager@455ade4, context:com.example.myapplication.MainActivity@430039e at androidx.recyclerview.widget.RecyclerView$Recycler.validateViewHolderForOffsetPosition(RecyclerView.java:6544) at androidx.recyclerview.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:6727)...

**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...

在对已经设置好数据的adapter执行插入或删除单个数据的操作时报如下错误: ``` java.lang.UnsupportedOperationException at java.util.AbstractList.add(AbstractList.java:148) ```

修复BaseNodeAdapter 移除某个节点后,调用expandAndCollapseOther方法报IndexOutOfBoundsException问题

1 BaseRecyclerViewAdapterHelper 3.0.7 PopupWindow 中的RecyclerView1.2.1(1.1.0) 无法响应点击事件 添加ChildClickListener也不行 2 BaseRecyclerViewAdapterHelper 2.9.46 添加ChildClickListener后可以执行点击事件