You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 !.
The text was updated successfully, but these errors were encountered:
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.
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 !.
The text was updated successfully, but these errors were encountered: