Closed abiemann closed 6 years ago
Yes, indeed, as long as you have set isInfinite
to true. If it is infinite, page[0] and page[3] are just dummies of page[2] and page[1] correspondingly (That means there are only 2 pages from the point of view of user)
I skip the timer of page[3] because we don't want user to know that page[0] and page[3] exists. When ViewPager selected page[3], it will directly, immediately jumps to page[1] (Which is the same as page[3]).
So... what is your question / problem?
my viewpager has 4 pages: indexes 0,1,2,3
It seems that LoopingViewPager starts at page[1] (I expected page[0]), then page[2], then it skips the timer on page[3] and goes directly back to page[1]
usage in XML:
in Java: