I was facing many issues when integrating the old Jake Wharton project which was archived. I came along this github project and it was properly integrating with the newest app compat/support version. Hope it helps someone.
Vertical as well as horizontal view pager swipe