怎么能automaticaly移动滚动条? [英] how can move scroll bar automaticaly?

查看:191
本文介绍了怎么能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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆