Stop scrolling in a listview

后端 未结 6 2379
挽巷
挽巷 2021-02-15 16:32

I have in my activity a listview and an imagebutton. When I click the imagebutton I want to go to a specific position in the list (I do this by calling: setSelection(int positio

6条回答
  •  囚心锁ツ
    2021-02-15 17:11

    // Stop scrolling
    smoothScrollBy(0, 0);
    

    Internally this will call the method that @Nik is trying to reflect.

提交回复
热议问题