search

Home  >  Q&A  >  body text

android - viewpager怎样控制滑动速度?

迷茫迷茫2772 days ago583

reply all(1)I'll reply

  • 巴扎黑

    巴扎黑2017-04-17 16:29:19

    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.

    reply
    0
  • Cancelreply