如何在自动滚动android的列表视图? [英] how to autoscroll a list view in android?
本文介绍了如何在自动滚动android的列表视图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在自动滚动android的列表视图?我将数据添加到列表中,这样我想,当我添加它应该自动滚动,最后添加的项目应该是可见的。
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.
推荐答案
使用功能setSelectionFromTop(INT位置,int y)对
Use the function setSelectionFromTop(int position, int y)
<一个href=\"http://developer.android.com/reference/android/widget/ListView.html#setSelectionFromTop%28int,%20int%29\" rel=\"nofollow\">http://developer.android.com/reference/android/widget/ListView.html#setSelectionFromTop%28int,%20int%29
这篇关于如何在自动滚动android的列表视图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文