tommybuonomo / dotsindicator

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

As a library user I want to set custom pager #117

Closed vadzimv-reed closed 2 years ago

vadzimv-reed commented 3 years ago

I display 5 questions in view pager with dots at the bottom. User answers questions, and pager automatically scrolls to the next question. User can swipe left to see already answered questions, but he can not swipe forward.

The easiest way to disable scrolling forward is to not to add next questions to view pager adapter. I have page adapter with 2 items, but I want 5 dots. I achieved it using custom implementation of BaseDotsIndicator.Pager.

In the scope of this PR I want you to let library users set their own pager to the library.