android - FragmentStatePagerAdapter with subsets of fragments -


this problem has ben bugging me longer willing admit, came here help.

i am, afaik, restrained using fragmentstatepageradapter display fragments due bitmaps , ooms on android.

i implementing game, , have set of fragments. of these fragments can locked, , should not shown when swiping through list.

for instance:

i have set containing 1..10 fragments. in set, fragment #5,#6 , #7 locked. means have 2 subsets (1..4 , 8..10) of unlocked fragments.

the functionality i'd have, swipe #1 #4 , swipe #8 #10.

it should not able swipe #4 #5, , should not possible swipe between 2 subsets.

when displaying fragment #4, should function if #4 end of list. accordingly, when displaying #8, should appear #8 @ start of list when being in other subset.

is there suggestions? have tried override getitem , passing in subsets, has resulted in either npes or displaying wrong fragments.


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -