如何知道什么时候图库部件停止滚动? [英] How to know when gallery widget stop scrolling?

查看:88
本文介绍了如何知道什么时候图库部件停止滚动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要开始一个过程,只有当画廊停止滚动。 onItemSelected不剪它,因为​​它将继续仿佛滚动调用。

I need to start a process only when the gallery stop scrolling. "onItemSelected" doesn't cut it as it will be called continuously as if scroll by.

那么如何检测或回调时,画廊停止滚动?

So how to detect or callback when the gallery stop scrolling?

推荐答案

您可以调整的 的图库视图与调用一个litlle位<一个href=\"http://developer.android.com/intl/de/reference/android/widget/Gallery.html#setCallbackDuringFling%28boolean%29\">setCallbackDuringFling(false).这应该在用户停止滚动onItemSelected呼叫限制的情况。

You can tune the behaviour of the galleryview a litlle bit with calling setCallbackDuringFling(false). This should limit the calls to onItemSelected to cases where the user stopped scrolling.

这篇关于如何知道什么时候图库部件停止滚动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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