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.
I use ViewPager.setCurrentItem() to automatically swipe to the next page every few seconds. I’d
Share
Are you familiar with SCROLL_STATE_DRAGGING? It indicates that the pager is currently being dragged by the user.
Example