开发者

how to autoscroll a list view in android?

开发者_C百科how to autoscroll a list view in android?I am adding data to the list so i want that when i add it should autoscroll and the last added item should be visible.


Use the function setSelectionFromTop(int position, int y)

http://developer.android.com/reference/android/widget/ListView.html#setSelectionFromTop%28int,%20int%29

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜