siralam / LoopingViewPager

A ViewPager and PagerAdapter combination that support auto scroll, infinite loop and page indicators.
532 stars 64 forks source link

Autoscroll cannot be turned off #3

Closed DragiPandeliev closed 6 years ago

DragiPandeliev commented 6 years ago

I tried to turn off autoscroll feature, but callingpauseAutoScroll() is not enough because there is:

@Override public void onPageSelected(int position) { ... autoScrollHandler.postDelayed(autoScrollRunnable, interval); }

which starts the autoscrolling again, once you scroll to a page.

DragiPandeliev commented 6 years ago

My bad. I found now that there is an XML parameter to be set and it works flawlessly!