我在 Android 中有一个 Listview
。我希望 Listview 自行从上到下连续滚动。它应该无限发生
显然我想捕获对 Listview
任何项目的点击,发布滚动将继续
任何有此类实现经验的人。请帮忙!!
最佳答案
http://groups.google.com/group/android-developers/msg/753a317a8a0adf03
要自动滚动,可以使用:listView.smoothScrollToPosition(position);
private void scrollMyListViewToBottom() {
myListView.post(new Runnable() {
@Override
public void run() {
// Select the last row so it will scroll into view...
listView.smoothScrollToPosition(myListAdapter.getCount() - 1);
// Just add something to scroll to the top ;-)
}
});
}
关于android - 连续自动滚动ListView,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7519597/