New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setempty() 问题 #542
Comments
2.6.1不用notifyItemChanged(0); |
怎么说 |
notifyItemChanged(0);用多了会出现 |
直接setEmptyView(view)不行吗 |
看见了 现在集成了在方法里了 |
可以了吗 |
还没测试。。 |
2.6.1 你可以参考 demo 代码 |
orderAdapter.loadMoreFail(); 这个怎么设置点击加载事件 |
不用设置点击加载事件,已经设置了,点击后会回调加载更多 |
|
加载到某一次之后 拉到底部就不加载了 |
求帮助 |
一直走上面的T.showShort(getCContext(), "网络错误,请检查网络"); baseQuickAdapter.loadMoreFail();这2句? |
你设置setAutoLoadMoreSize这个了吗? |
第一次走loadMoreData(); 后面这个就不走了 |
这个必须要设置吗? |
不是必须的,那你说的一直停在底部刷新 是一直调//pageNo++; loadMoreData();这个吗?loadMoreData()怎么写的 |
就没走拉到底部加载方法 |
你现在的问题能详细描述下吗 |
我再初次刷新的时候tableAdapter.setEnableLoadMore(true);
if (orderLst.size() == 0) {
加载成功
现在的问题是加载到底部不走RequestLoadMoreListener里面了 |
一直就是底部转圆圈 |
setAutoLoadMoreSize这个方法不是设置pageSize,这个参数设置N你就会在倒数第N个位置显示出来的时候刷新,默认是1就是在最后一个item显示的时候回调加载更多 |
现在去掉了 但是就是加载一次 第二次就只显示底部了 |
一直在底部转圈是加载成功后还有数据时需要调用loadMoreComplete(),如果没有数据调用loadMoreEnd() |
刷完数据还有数据时 每次都要再调用这个方法是吧loadMoreComplete(); |
恩,对 |
谢谢 是这样子的 |
有个新问题baseQuickAdapter.openLoadAnimation(); 我设置动画是这样的 以前的那版还没测试过只有一个数据的情况下。当adapter.notiRemove(position), 会报错IndexOutOfBoundsException: Inconsistency detected. Invalid item position,复写了LinearLayoutManager 这个。现在发现Ok了 |
public void setEmptyView(RecyclerView rv, BaseQuickAdapter baseQuickAdapter) {
baseQuickAdapter.setEmptyView(getEmptyView(rv));
baseQuickAdapter.notifyItemChanged(0);
}
我有2个方法 如果我加载没数据setEmptyView,加载错误setErrorView。我先加载成功没数据setEmptyView,然后加载失败setErrorView,再次加载失败setErrorView,这一步的时候baseQuickAdapter.notifyItemChanged(0); 这个会显示setEmptyView的内容,非常奇怪 求问那里写错了
The text was updated successfully, but these errors were encountered: