Nukc LoadMoreWrapper Versions Save

📦 Enable the RecyclerView to support loading more and customizing the footer view without modifying the original adapter of the RecyclerView. 在不改动 RecyclerView 原有的 adapter 的情况下,使 RecyclerView 滑动到底部的时候能够加载更多和自定义底部视图。

v1.4

7 years ago

fix: use notifyItemRangeRemoved after clear item, can throw java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position fix: recyclerView will auto scroll to bottom when use onItemRangeInserted(0, count) after clear item

v1.2

7 years ago

支持设置是否显示没有更多视图,可自定义。

注意:当加载完全部后且已 setLoadMoreEnabled(false),但如果由于生命周期或其他问题而导致 View 重建,mLoadMoreEnabled 依然为 true。 这时候应该需要保存 mLoadMoreEnabled 的状态,如果是 ViewPager + Fragment,可以使用 setOffscreenPageLimit 进行解决。

v1.1

7 years ago

新增方法:获取原来的adapter,Merge pull request #1

v0.4.2

7 years ago

增加在onBindViewHolder()触发loadmore的条件

v0.4.1

7 years ago

修复上个版本可能带来的bug

v0.4.0

7 years ago

修复当notifyItemInserted(0)的时候RV不会添加item的情况; 修改部分逻辑。

v0.3.6

7 years ago

支持当item未铺满屏幕的时候仍能够加载更多