When you use setPageMargin to set a negative margin to your ViewPager the pages will become smaller than the full width of the ViewPager. Side effect of this is that user can then use one long gesture to change the active page more than once.
Is there a way to prevent a single gesture changing the page more than once?
I have tried to stop the motion events from reaching the the pager but you will have to let the MotionEvent.ACTION_UP to go through or the pager doesn't work correctly. The up also triggers velocity based calculations in the ViewPager and causes an extra page change when it is triggered.
Either I need to reset the velocity of the drag or I need somehow prevent additional page changes.
I have used the method described in this question's answer to stop the scrolling but the described ACTION_UP problem prevents me from completing it. Is it possible to disable scrolling on a ViewPager
Any ideas?