Jean-Pierre Semery
Aug 31, 2018 · 1 min read

Hi Jimit, Nice work.

I’m using you custom view pager the following way

The activity display restaurant menus that can either be displayed in portrait or landscape mode. These are bitmaps the size of the screen. To make things easier. I swap the width and height at bitmap creation time and rotate it depending on the mode once the bitmap has been created.

The activity is always (forced) in landscape mode. when I set the viewpager orientation to horizontal all is fine. but in vertical mode I have to swipe left to right to go from the first page to the second page which one would not expect. a bit like reading a book backwards.

I tried to play with the code to reverse the swiping but I’m a bit lost.

Is there an easy way to do this: reverse the swipe in vertical orientation mode?

Thanks a lot

Jean-Pierre