1

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?

Eiffel Zhu
  • 51
  • 2
  • 4

1 Answers1

0

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().

David Scott
  • 1,666
  • 12
  • 22