Dots Indicator is an Android library that provides animated page indicator components for Jetpack Compose and classic XML views.
The library solves the problem of displaying visual feedback for pager navigation by offering multiple animated indicator styles. For Compose, it integrates directly with PagerState and exposes four distinct animation types: Shift, which slides the highlight across dots; Spring, which uses physics-based motion; Worm, which stretches and contracts; and Balloon, which scales dots. For XML-based views, it provides DotsIndicator and SpringDotsIndicator components that attach to ViewPager and ViewPager2, with customizable attributes controlling dot color, size, spacing, corner radius, elevation, and interactivity.
Developers should choose this library if they need polished, animated page indicators for either modern Compose-based applications or legacy XML layouts. The Compose implementation is particularly suited for new projects using Jetpack Compose, while the XML components serve teams maintaining ViewPager-based applications. The library bundles both approaches in a single artifact, allowing projects to use whichever fits their architecture without additional dependencies.
The project maintains active engagement with user requests and issues. Development includes regular refinement of animation behaviors and visual polish across all indicator types. The codebase demonstrates attention to customization options, with extensive attribute support for controlling appearance and behavior in XML views and corresponding configuration in Compose implementations.