【发布时间】:2017-03-09 06:09:51
【问题描述】:
我正在尝试使用线性布局管理器平滑滚动到 recyclerview 中的某个位置。
void smoothScrollToPosition(int position)
但是,它并不总是能正常工作。有时,它会将我带到列表的底部,并且在日志中,我收到以下错误消息
Passed over target position while smooth scrolling
我在 SO 中找到了 this thread。但是,答案并没有解释为什么会出现错误,它有解决问题的方法。很长一段时间以来,我一直试图弄清楚这一点。有人能解释一下什么时候会抛出这个错误吗?
【问题讨论】:
标签: android scroll android-recyclerview linearlayoutmanager