开发者

How to use move to selected items in listview in android?

I have a listview. Which is refreshed when reached at the end of the list. Bu开发者_StackOverflowt when list is refreshed the selection reset and first item shows selected. So have used setSelection(selectedItem), it makes that row selected but moved it top of the screen. I want it should remain at the bottom. How to achieve this?


Try using smoothScrollToPosition (int position);

This will make the listview scroll to the position of the item. Click here for more info;

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜