tommybuonomo / dotsindicator

Three material Dots Indicators for view pagers in Android !
Apache License 2.0
3.44k stars 353 forks source link

Set number of dots.. #127

Closed DevX-cmd closed 2 years ago

DevX-cmd commented 3 years ago

Hello everyone. I am using this library for an app. I want to only implement 3 dots.. By default there are 5 dots. How can i do that..

divyabyte commented 2 years ago

Hello, It will automatically detect the number of fragments your view pager has. And according to that number of dots will be displayed.

dots_indicator.setViewPager(viewPager)

tommybuonomo commented 2 years ago

Thanks @divyabyte for your perfect answer Closing this now 🙏