July 2015
Beginner to intermediate
600 pages
18h 59m
English
There is another PagerAdapter type that you can use called FragmentPagerAdapter. FragmentPagerAdapter is used exactly like FragmentStatePagerAdapter. It only differs in how it unloads your fragments when they are no longer needed (Figure 11.4).
Figure 11.4 FragmentStatePagerAdapter’s fragment management
With FragmentStatePagerAdapter, your unneeded fragment is destroyed. A transaction is committed to completely remove the fragment from your activity’s FragmentManager. The “state” in FragmentStatePagerAdapter comes from the fact that it will save out your fragment’s Bundle ...
Read now
Unlock full access