سؤال

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!

هل كانت مفيدة؟

المحلول

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

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top