怎么能automaticaly移动滚动条? [英] how can move scroll bar automaticaly?
问题描述
我使用了显示图像网格视图,我想滚动自动移动,每当我在GridView中添加其他图片,是否有可能,请给code表示...
i am using grid view for display images,i want to scroll move automatically,whenever i add another images in gridview,is it possible,please give code for that...
感谢所有
推荐答案
我认为你必须阅读多一点点::
I think you have to read a little bit more ::
<一个href=\"http://developer.android.com/intl/fr/reference/android/widget/AdapterView.html#setSelection%28int%29\" rel=\"nofollow\">http://developer.android.com/intl/fr/reference/android/widget/AdapterView.html#setSelection(int)
ListView.setSelection(position);
<一个href=\"http://developer.android.com/intl/fr/reference/android/widget/AbsListView.html#smoothScrollToPosition%28int%29\" rel=\"nofollow\">http://developer.android.com/intl/fr/reference/android/widget/AbsListView.html#smoothScrollToPosition(int)
ListView.smoothScrollToPosition(position).
这篇关于怎么能automaticaly移动滚动条?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!