The current implementation tightly binds ViewPager to the implementation forcing consumers of the library to have a ViewPager in order to use the DotsIndicator.
However, by simply implementing your own Pager and its methods you can create your own implementation of the DotsIndicator which is mostly decoupled from the ViewPager.
But there is one single method needed in order to complete this decoupling: refreshDots(). Currently it is protected, I need it to be public.
Currently I need a decoupled version of this library for a custom carousel which makes use of the HorizontalScrollView.
The jist of the problem
The current implementation tightly binds
ViewPager
to the implementation forcing consumers of the library to have aViewPager
in order to use the DotsIndicator.However, by simply implementing your own
Pager
and its methods you can create your own implementation of the DotsIndicator which is mostly decoupled from theViewPager
.But there is one single method needed in order to complete this decoupling:
refreshDots()
. Currently it is protected, I need it to be public.Currently I need a decoupled version of this library for a custom carousel which makes use of the
HorizontalScrollView
.