Releases: youlookwhat/ByRecyclerView
Releases · youlookwhat/ByRecyclerView
1.2.0
新增 item局部刷新
// 设置要局部刷新的position及payload
adapter.refreshNotifyItemChanged(position, PayloadAdapter.PAYLOAD_COLLECT);
// adapter里额外再继承 bindViewPayloads 方法
@Override
protected void bindViewPayloads(@NonNull BaseBindingHolder holder, @NonNull DataItemBean bean, @NonNull ItemPayloadBinding binding, int position, @NonNull List<Object> payloads) {
for (Object p : payloads) {
int code = (int) p;
switch (code) {
case PAYLOAD_ZAN:
binding.tvZan.setText(bean.getIsZan() == 1 ? "已赞" : "点赞");
break;
case PAYLOAD_COLLECT:
binding.tvCollect.setText(bean.getIsCollect() == 1 ? "已收藏" : "收藏");
break;
default:
break;
}
}
}
1.1.6
- 增加处理 横向宫格分割线
1.1.5
- 解决setStateView可能存在的错误
- 优化在ViewPage2里使用时,使用下拉刷新的处理逻辑
1.1.4
- 处理在ViewPager2中下拉刷新时左右移动中断的问题,可setDispatchTouch(false)取消处理
- 增加setStateViewEnabled(boolean stateViewEnabled, boolean isRemoveRefresh),状态布局可直接remove
1.1.3
- 优化
OnItemFilterClickListener
和OnItemChildFilterClickListener
代码 - 更改加载更多View的进度条默认颜色,默认取
colorAccent
1.1.2
新增
OnItemFilterClickListener
item防止重复点击OnItemChildFilterClickListener
item子view防止重复点击
1.1.1
fix:
if (!adapter.hasObservers()) {
adapter.registerAdapterDataObserver(mDataObserver);
}
1.1.0-support
Support:
- 修改加载更多逻辑:最后一条显示松开手指即加载
1.1.0
AndroidX:
- 修改加载更多逻辑:最后一条显示松开手指即加载
1.0.18-support
- fix GridSpaceItemDecoration setSpanSizeLookup会发生错乱 #13