BannerViewPager is an Android banner carousel library built on ViewPager2 that handles looping image galleries with customizable page layouts and indicator styles.
The library solves the problem of implementing carousel banners in Android applications by providing a ViewPager2-based solution that handles infinite looping automatically. It supports displaying multiple pages simultaneously on screen with configurable reveal widths, allowing developers to show partial views of adjacent pages. The approach includes built-in support for various page styles such as multi-page, multi-page with scaling, and multi-page with overlap effects, along with multiple indicator style options and slide modes.
Developers should choose this tool if they need a production-ready banner implementation that matches patterns used in major applications. It suits projects requiring flexible carousel layouts where showing multiple pages at once is desired, or where standard single-page-at-a-time carousels are insufficient. The library works with ViewBinding and DataBinding, supports multiple view types within a single carousel, and allows custom indicator implementations. The indicator functionality has been separated into a dedicated library for those who need indicator components independently.
The project shows active maintenance with regular updates and comprehensive documentation organized through a wiki structure covering quick starts, API reference, multiple view types, data binding integration, and custom indicator creation. The codebase includes sample implementations demonstrating various page styles and indicator configurations, with downloadable demo applications available for testing different versions.