tommybuonomo / dotsindicator

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

Request option to setMaxDotCount #111

Closed alanlai1989 closed 2 years ago

alanlai1989 commented 3 years ago

if this method not calling or setting, the default maxDotCount should be total of viewpager items

use case 1: setMaxDotCount(4); if total viewpager items got 10, the dot will show max dot count (4)

use case 2: if total viewpager items got 10, the dot will show max dot count (10)

use case 3: setMaxDotCount(4); if total viewpager items got 3, the dot will show max dot count (3)

tommybuonomo commented 3 years ago

Hello @alanlai1989 I don't understand exactly your needs here. If there is 10 page in your view pager with setMaxDotCount(4), what's the display for the 5th page ?

alanlai1989 commented 3 years ago

sorry, for very late reply. If there is 10 page in your view pager with setMaxDotCount(4), what's the display for the 5th page ? 5th one selected and the hightlighted dot should be at third point until 9th position. When scrolling to last item then the highlighted dot should move to last one. @tommybuonomo