Skip to content

Releases: youlookwhat/ByRecyclerView

1.2.0

20 Nov 14:21
Compare
Choose a tag to compare

新增 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

17 May 01:56
Compare
Choose a tag to compare
  • 增加处理 横向宫格分割线

1.1.5

01 Feb 08:51
Compare
Choose a tag to compare
  • 解决setStateView可能存在的错误
  • 优化在ViewPage2里使用时,使用下拉刷新的处理逻辑

1.1.4

26 Nov 10:02
Compare
Choose a tag to compare
  • 处理在ViewPager2中下拉刷新时左右移动中断的问题,可setDispatchTouch(false)取消处理
  • 增加setStateViewEnabled(boolean stateViewEnabled, boolean isRemoveRefresh),状态布局可直接remove

1.1.3

26 Aug 06:44
Compare
Choose a tag to compare
  • 优化OnItemFilterClickListenerOnItemChildFilterClickListener 代码
  • 更改加载更多View的进度条默认颜色,默认取colorAccent

1.1.2

12 Aug 01:18
Compare
Choose a tag to compare

新增

  • OnItemFilterClickListener item防止重复点击
  • OnItemChildFilterClickListener item子view防止重复点击

1.1.1

21 Jul 06:08
Compare
Choose a tag to compare

fix:

        if (!adapter.hasObservers()) {
            adapter.registerAdapterDataObserver(mDataObserver);
        }

1.1.0-support

25 May 15:48
Compare
Choose a tag to compare

Support:

  • 修改加载更多逻辑:最后一条显示松开手指即加载

1.1.0

25 May 12:57
Compare
Choose a tag to compare

AndroidX:

  • 修改加载更多逻辑:最后一条显示松开手指即加载

1.0.18-support

28 Mar 12:42
Compare
Choose a tag to compare
  • fix GridSpaceItemDecoration setSpanSizeLookup会发生错乱 #13