Android 12 Developer Preview is here! Try it out, and give us your feedback!

androidx.viewpager2.widget

Interfaces

PageTransformer

A PageTransformer is invoked whenever a visible/attached page is scrolled.

Classes

CompositePageTransformer

Allows for combining multiple PageTransformer objects.

MarginPageTransformer

Adds space between pages via the ViewPager2.PageTransformer API.

ViewPager2

ViewPager2 replaces androidx.viewpager.widget.ViewPager, addressing most of its predecessor’s pain-points, including right-to-left layout support, vertical orientation, modifiable Fragment collections, etc.