Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to know when gallery widget stop scrolling?

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?

like image 661
Teo Choong Ping Avatar asked Nov 28 '25 20:11

Teo Choong Ping


1 Answers

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.

like image 63
Janusz Avatar answered Nov 30 '25 10:11

Janusz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!