Working with ViewPager2

Sliding Pager with Dot Indicators — The Easiest Way (without any third-party)

Why

Simply, because we seriously need some solution where we don’t have to depend on some third party library to implement the dot indicator on page change or slide OR where we don’t have to write any complex logic to loop around the number of pages in the ViewPager and according to that update the dot in the custom…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Dharmesh Basapati

Dharmesh Basapati

Android Developer | Jetpack Compose | Kotlin | Java | Flutter | https://linktr.ee/dharmeshbasapati