InfiniteViewPager icon indicating copy to clipboard operation
InfiniteViewPager copied to clipboard

This solution wo'nt work in some cases

Open htqbuu opened this issue 11 years ago • 1 comments

The case is I need to show 3 view at the same time. So I set: setOffscreenPageLimit(2) That means, there are 5 views to be cached. And currently, I only have 4 fragments to make view. So, fragment manager will have a chance to attach duplicate fragment which cause fragment to be blank !.

htqbuu avatar May 30 '14 07:05 htqbuu

I don't think you can use setOffscreenPageLimit() with this solution - this is a replacement for that sort of functionality. You just define all of your fragments to be in the infiniteview list and it loops through them backwards and forwards for you.

DigitalDavo avatar Aug 22 '14 05:08 DigitalDavo