how can I kong when gallery is start scroll and stop scroll
-
15-06-2021 - |
Question
I had a gallery and I rewrite it from gallery in Android source code.
Now i wanna get the start and stop state of it, how can I do this?
I just wanna know when did gallery start and stop, so I can make my animation start stop correctly!
Solution
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.
Check out the link
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow