romandanylyk / PageIndicatorView

An page indicator for Android ViewPager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RTL mode: animation inconsistent

rbiddulph opened this issue · comments

With RTL mode set to Auto or enabled, and using the RTLViewPager from Duolingo at https://github.com/duolingo/rtl-viewpager the page indicator sometimes skips from the first blob to the last blob when swiping through the view pager. This is evident when a viewPager has 3 items in it, swiping from pos 0 to 1 is fine, but 1 to 2 shows an animation in the indicator going from 0 to 2.

i found the solution
just remove this line
dots.setSelection(position); from addOnPageChangeListener
as the readme recommended and it will work