-
Notifications
You must be signed in to change notification settings - Fork 330
刷新的索引会出现问题 #46
Comments
描述的能具体一点吗? |
适配器onBindViewHolder的索引不是当前rv显示的item的索引 |
我的意思是 滑动结束拿到 currentPosition 刷新适配器 是什么操作,方便的话代码贴一下 |
if (newState == RecyclerView.SCROLL_STATE_IDLE) { |
所以你要做的事情是在滑动结束的时候,将当前的 |
是的 当选中之后改变当前item的显示状态 |
我试了下 并没有什么问题 你有开无限滚动 或者有用 |
这是我的设置代码 |
这样设置并没有什么问题,你 |
378534547, 这是我qq |
https://github.com/CuiBow/TestViewPager |
层主怎样解决的?我这边也遇到了 |
viewPagerLayoutManager.setMaxVisibleItemCount();
| |
18813018517
邮箱:18813018517@163.com
|
签名由 网易邮箱大师 定制
在2018年02月28日 18:13,akebrt 写道:
层主怎样解决的?我这边也遇到了
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.
|
他是因为实际的数据量,少于屏幕显示的数据数量 比如 |
可以解决。谢谢 |
已解决,谢谢 |
当滑动结束拿到currentPosition 刷新适配器会出现索引错乱的问题
The text was updated successfully, but these errors were encountered: