0

Has anybody managed to implement a vertical ViewPager by trying to change the source code of ViewPager?

user1923613
  • 576
  • 5
  • 9
  • 29

1 Answers1

0

I think you would need to edit the source code for ViewPager and swap out all x,y and width,height logic. DirectionalViewPager should do the job. Here is the source: https://github.com/JakeWharton/Android-DirectionalViewPager

Marcin S.
  • 11,476
  • 6
  • 45
  • 63
  • I don't need the swap from horizontal to vertical function that Jake's Pager has. I just need a ViewPager that scrolls vertically. I guess nobody's done, huh. What I'm really doing is trying to find a way not to do all that work. :) – user1923613 Jan 07 '13 at 02:01
  • 1
    Why not look at the source for DirectionalViewPager and see how it has been implemented there, and write your own that doesn't include all the extra stuff you don't need? – howettl Feb 09 '13 at 01:08