tommybuonomo / dotsindicator

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

Incorrect dot size #128

Closed ArmChilingarov closed 2 years ago

ArmChilingarov commented 3 years ago

UI bug when there are many dots , and the width of dots container is more than device width . try to set 50 items in viewPager .

Also Good to have a scrolling feature for large number of dots . Now, it just stacks on the end dot.

photo_2021-06-16 14 22 25 photo_2021-06-16 14 22 27

version - 'com.tbuonomo:dotsindicator:4.2'

<com.tbuonomo.viewpagerdotsindicator.WormDotsIndicator android:id="@+id/diPagerDots" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="8dp" app:dotsColor="@color/white" app:dotsCornerRadius="6dp" app:dotsSize="12dp" app:dotsSpacing="6dp" app:dotsStrokeColor="@color/red" app:dotsStrokeWidth="2dp" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" />

tommybuonomo commented 2 years ago

Hello @ArmChilingarov Thanks for your contribution In fact, this is because there is too much dots in your view. I don't really see the interest of having an infinite list of dots In my opinion, dots are useful only when you have a finite number of pages (like into an on-boarding screen for instance) I think you shouldn't use dots when there is too much pages