I required to develop an App which will look similar to Android Play Store Application or else like this app. I Read many tutorials and find almost every tutorial with similar examples as this one.
I have started with my App and done with Sample ViewPager with Fragments containing all Static data shown in the above example. Now I want to fetch the WS data as Playstore app or above given Example app. I have done a sample but it will store the Fragment Data of 1,2 fragments only and when I go for 3rd fragment, it loses the 1st fragment and loses 2nd fragment when go to 4th fragment.
How to achieve the above architecture and get it done.
UPDATED:
I am using FragmentPagerAdapter for which, in which it is saving only two or three fragments data.
You can use
ViewPager.setOffscreenPageLimit(int limit)The default limit is 1. It is also the minimum limit (needed for the sliding animation).