3

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?

Teo Choong Ping
  • 12,512
  • 18
  • 64
  • 91

1 Answers1

11

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.

Midhun MP
  • 103,496
  • 31
  • 153
  • 200
Janusz
  • 187,060
  • 113
  • 301
  • 369