Android ListView setSelection() does not seem to work

前端 未结 17 1702
情歌与酒
情歌与酒 2020-11-28 06:45

I have a ListActivity that implements onListItemClick() and calls a doSomething() function of the class. The latter contains l.s

17条回答
  •  孤城傲影
    2020-11-28 06:56

    In my case smoothScrollToPosition(int position) worked, can you also tell me how to set that scrolled position into center of the list. It appeared at the bottom of visible items.

提交回复
热议问题