android - viewpager怎样控制滑动速度?
迷茫
迷茫 2017-04-17 16:27:19
0
1
585
迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(1)
巴扎黑

ViewPager has a sliding effect by default. If you need to disable it, you need to inherit ViewPager and rewrite several touch-related methods to return true. So the first problem can be solved by customizing ViewPager.
I’m not sure about the second and third questions, because I haven’t found out how to control the speed of Smooth sliding, so I can’t say yet, but I guess it’s not supported.
The fourth question, no, the ViewPager will slide to a certain page and will not stay somewhere between the two pages.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template