Vertical swipe in ViewPager

I am using ViewPager with a PagerAdapter. Is it possible to implement vertical scrolling in Android, where you can scroll between top to bottom and top to bottom views? I need the same behavior as ViewPager by default, but vertically. I found the canScrollVertically () method, but that is not what I am looking for, I suppose. thanks in advance

+4
source share
1 answer

Naturally, no.

However, Jake Wharton has a directional ViewPager that does this.

https://github.com/JakeWharton/Android-DirectionalViewPager/

The only problem is that he no longer supports him, but he will get you started. It may even be enough for what you want.

+4
source

All Articles