The default speed is too fast, and I think it would affect the user experience.
In the gallery, we can override the onfling(), what's the solution in a viewpager?
The default speed is too fast, and I think it would affect the user experience.
In the gallery, we can override the onfling(), what's the solution in a viewpager?
The speed is determined by the screen density and is a private variable. There is no way of changing it.
A solution would be to copy the source for the ViewPager and create your own class. You can then change the value to whatever you want. The variable is mBaseLineFlingVelocity
and it gets set during initViewPager()
.