Android view pager: how to distinguish user and programmatic swipes?

Viewed 1337

I use ViewPager.setCurrentItem() to automatically swipe to the next page every few seconds. I'd like to disable this as soon as the user starts swiping himself. As far as I can tell, OnPageChangedListener gets triggered in the same way whether the swipe came from the user or not. It seems like beginFakeDrag() could help, but it requires to drag by a specified number of pixels, which isn't practical.

1 Answers
Related