【发布时间】:2011-09-28 15:35:34
【问题描述】:
我正在使用smoothScrollBy() 滚动到ListView 中的特定位置。我希望在 ListView 完成滚动以将其与用户用手指滚动时触发的当前 onScrollStateChanged() 事件集成时收到通知。
目前我正在使用Timer,它在平滑滚动持续 100 毫秒后运行,但这不像我希望的那样由事件驱动。
【问题讨论】:
-
我可以通过自己的调试确认
smoothScroll*函数不会触发滚动状态更改,因此会使OnScrollListener.onScrollStateChanged()回调无效。
标签: android listview scroll event-driven