smoothScrollToPosition() only scrolls partway in Android ICS?

前端 未结 5 1881
闹比i
闹比i 2021-02-04 18:05

In Gingerbread, I had no issues with using smoothScrollToPosition() to scroll across dozens of items at a time. After my Nexus S was upgraded to Ice Cream Sandwich, I noticed th

5条回答
  •  忘了有多久
    2021-02-04 18:50

    Because the ListView uses the getChildCount() method to get the position count in AbsListView.java source code. but in ListView the getChildCount() method can't get the correctly count. Maybe you should use setSelection() method.

提交回复
热议问题