We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm using ViewPager2.
ViewPager2
When I setCurrentItem to ViewPager2 with smoothScroll=false, the indicator remains at the start position and not at the correct ViewPager2 position
setCurrentItem
smoothScroll=false
The text was updated successfully, but these errors were encountered:
Have the same problem :/ with smoothScroll=true it is working
smoothScroll=true
Sorry, something went wrong.
You need add delay before set current page. My decision Handler(Looper.getMainLooper()).postDelayed({ binding.dotsIndicator.refreshDots() }, 50)
Handler(Looper.getMainLooper()).postDelayed({ binding.dotsIndicator.refreshDots() }, 50)
It's becase dots have not received coordinates yet and pos = 0,0 for any page. We need to wait, while they are drawn on the canvas
Fixed in 4.3
4.3
Hello, thanks for your contribution ! This issue is now fixed in the new version 4.3 Thanks 🔥
tommybuonomo
No branches or pull requests
I'm using
ViewPager2
.When I
setCurrentItem
toViewPager2
withsmoothScroll=false
, the indicator remains at the start position and not at the correctViewPager2
positionThe text was updated successfully, but these errors were encountered: