Has anybody managed to implement a vertical ViewPager by trying to change the source code of ViewPager?
Asked
Active
Viewed 2,054 times
0
-
Hi. Did you manage to make it work ? if yes, could u provide the code. thanks a lot. – Paul Feb 14 '13 at 18:07
-
1Yep. Give me your e-mail and I'll send it to you. It's not perfect though. – user1923613 Feb 18 '13 at 12:18
-
Could you also send it to me, please? I will help me so much. thedistortion [at] yandex [dot] ru – Vasily Sochinsky Apr 14 '13 at 11:32
-
I'd love to have it as well, if you dont mind.. rlp at nebular.tv – rupps Apr 18 '13 at 10:02
-
any chance that you can post the code ? here or at Github ? – Rany Ishak May 16 '13 at 16:20
-
Hey, can you try this solution? [Vertical ViewPager](http://stackoverflow.com/questions/13477820/android-vertical-viewpager/18657771#18657771) – Kulai Sep 18 '13 at 00:16
1 Answers
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,161
- 6
- 50
- 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
-
1Why 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