how to maintain scroll position of listview when it updates

后端 未结 6 1164
[愿得一人]
[愿得一人] 2021-02-05 05:32

I have read plenty of examples ,but if I wish to maintain my scroll position after a ListView is updated from JSON ,then can I do that without using an

6条回答
  •  星月不相逢
    2021-02-05 06:31

    list.smoothScrollToPosition(int position);     //my favorite :)
    

    It may also help you to scroll nice'n'smooth to a particular item

提交回复
热议问题