How do I know when the gallery widget stops scrolling?

I need to start the process only after stopping the gallery scroll. "onItemSelected" does not cut it, as it will be called continuously, as if it were scrolling.

So, how to detect or call a callback when the gallery scroll stops?

+3
source share
1 answer

You can change the galleryview behavior a bit with a call to setCallbackDuringFling (false) . This should limit calls to onItemSelectedcases where the user has stopped scrolling.

+11
source

Source: https://habr.com/ru/post/1786354/


All Articles