Now do the project encountered such a problem, the bottom is a FragmentActivity, which is equipped with a Viewpager page mode, each page is a Fragment, and now I want a Fragment in which nested in another Frangment, originally wanted to use FragmentManager do, but tried many ways the Internet is not ideal, it has greatly introduced methods
Reply:
http://blog.csdn.net/sinyu890807/article/details/8881711
Reply:
0.0! Amount. . Upstairs heroes, I have seen this before, did not seem to find what I want
Reply:
've Got the answer, here is my approach, see what you Takami:
(1) add a FragmentParent of Fragment page that is used to carry the child Fragment,
Note that the loading of each page Viewpage is a FragmentParent.
(2) When the substitution occurs between the child Fragment is based on the use of Heisei getActivity (). GetSupportFragmentManager (). Replace can,
Remember that
layout among the FragmentParent
Reply:
You do so, you can restore the system state after recovering it? Should not do it?
Reply:
learn!
Reply:
Landlord has not sent a code ah look, the processing logic FragmentParent
No comments:
Post a Comment