siralam / LoopingViewPager

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

Flicker Issue on the adjacent second view while moving from special item to first view. #26

Closed rajendrattn closed 4 years ago

rajendrattn commented 4 years ago

Flicker Issue on the adjacent second view while moving from special item to first view. can you please help me to resolve this issue ?

siralam commented 4 years ago

I don't get your issue. What do you mean by "adjacent second view" and "special item"?

rajendrattn commented 4 years ago

In your sample there is one pager item as a special view if pager automatically moves from left to right then the next page item created immediately. Which looks awkward behavior.

siralam commented 4 years ago

Ah I now understand what you mean. If adjacent page peeking is enabled by using setting clipToPadding="false", when user scrolls to first / last page the silent page change will occur only after scroll state is idle, thus user will see the moment that page is being created.

This is indeed an issue but given the current approach of infinite scroll, at the moment I don't have any idea how to avoid it. I will mark it as won't fix first.