siralam / LoopingViewPager

A ViewPager and PagerAdapter combination that support auto scroll, infinite loop and page indicators.
532 stars 64 forks source link

Move rigth away or move too fast at the beginning and at the end #28

Closed firdaus1453 closed 4 years ago

firdaus1453 commented 4 years ago

I got this behavior, if image at beginning or end, image not stop, but move right away, this not good, can you help me, solve this problem

Maybe this gif can make you understand

issuauto

You see, after image at end, they will change too fast and move to second image, not first image, you can see on dot indicator, and vice versa

This is my Adapter image

This is my xml image

This is when i set adapter image

This is when i replace data image

Hope my question clear, CMIIW This library is very cool, i can use page indicator what i want, keep this library live bro 😄

mochadwi commented 4 years ago

You should try to look at the LoopingViewPager class instead, to check when first or last item occurred. @firdaus1453

firdaus1453 commented 4 years ago

You should try to look at the LoopingViewPager class instead, to check when first or last item occurred. @firdaus1453

I think, both, because i try to move to end with swipe, automatically move so fast to second image, and otherwise

firdaus1453 commented 4 years ago

Oke i change my code, not use replaceData, i use constructor adapter to add data

image

And i got this, issuauto2

This is normal, because this library have behavior like that /**

And my bad, not read carefully in documentation, if you want to add dots indicator library, you dots indicator library must allow you to change total number dot in indicator

I will search different dots indicator library or i not use this library

Oke, thanks for response, i will close this issue

alokraj68 commented 3 years ago

We still getting this issue. what to do to fix this issue?