I am trying to scroll more than one item in a ViewPager
per swipe. I have implemented a carousel like ViewPager
by setting the PagerAdapter
's getPageWidth()
to return .33f
. And I am trying to scroll 3 items per swipe. I have tried incrementing position in ViewPager.onPageScrolled()
. But it isn't working.
Asked
Active
Viewed 1,792 times
0

muntasir2000
- 204
- 1
- 3
- 11
-
possible duplicate of [Can ViewPager have multiple views in per page?](http://stackoverflow.com/questions/9468581/can-viewpager-have-multiple-views-in-per-page) – Rajesh Batth Jun 19 '15 at 20:55
1 Answers
0
ViewPager is not the answer. You need HorizontalScrollView with paging. that enables you when flinging to swipe multiple pages but doesnt stop in the middle of a page.
In case u still want ViewPager - Read this
-
If Viewpager stops in the middle of a page, I don't mind. I have a working version with viewpager. Can't it be done in any means with ViewPager? – muntasir2000 Jun 19 '15 at 20:07
-
It will be much easier to move to HorizontalScrollView then to change the onTouch of the ViewPager. IMO – EE66 Jun 19 '15 at 20:08
-
Can you shade some light on how can I implement this with ViewPager? If I switch now, I have to change many things. – muntasir2000 Jun 19 '15 at 20:14