Wrote three fragment, one click Jump Show Normal, if from the first jump directly to the third, the third page will appear blank interface.
The problem found: The original dynamic Access data page data is not displayed, the page is blank, that is, oncreateview every time the call caused, so that fragment each time the new view is set, and debugging found that the previous view is not recycled ... This leads to a new view that overrides the previously set view, which makes sense.
Combined with the information available on the Internet, there are 3 ways to solve this problem:
1 viewpager.setoffscreenpagelimit (num); num is your tab number,
2 in Oncreateview, determine whether fragment has added Contentview (the first time you load, you can save the view, load again, to determine whether the saved view is null), if the saved view is null, Return the new view, otherwise, remove the saved view from the parent view and return the view
3 rewrite public void Destroyitem (ViewGroup container, int position, object object), remove Super.destroyitem (container, Position, object);
viewpager+fragment problems with blank pages