This repository has been archived on 2024-01-16. You can view files and clone it, but cannot push or open issues or pull requests.
2021-01-03 22:58:53 -05:00

741 B

Implementation of a ViewPager that supports both vertical and horizontal swiping. It's based on the support library 27.1.1 and uses the same package as ViewPager in order to use its interfaces and make it compatible with adapters and listeners.

A pager can be instantiated either from XML, optionally providing android:orientation:


Or from code:

val pager = DirectionalViewPager(context, false) // or true for horizontal

The direction of the pager can be changed at runtime with: