ListView-smoothScroll定位不准笨方法 Posted on 2021-02-06 Edited on 2021-02-15 In Android日记 ListView smoothScrollToPosition 定位不准笨方法解决 ListView smoothScrollToPosition 定位不准笨方法解决 有时需要列表平滑滚动到指定位置但和预期位置有出入网上查的原因说是Android的一个bug解决方法如下ListView.smoothScrollToPosition(0)ListView.postDelayed(new runnable){ListView.setSelection(0)}