How to know when gallery widget stop scrolling?

送分小仙女□ 提交于 2019-12-22 10:54:51

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/4733798/how-to-know-when-gallery-widget-stop-scrolling

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!