I have a fragment in which the viewpager lies in which fragments A and B are loaded. I need to divide each of these fragments (A and B) into several fragments.

At the moment in the xml files of the fragments lies FrameLayout .

Fragment download code:

 FragmentTransaction transaction = getChildFragmentManager().beginTransaction(); transaction.add(R.id.frame1, new Fragment1)).add(R.id.frame2, new Fragment2).commit(); 

In the end, I get endless progress bar.

  • So what? well done? - Gorets 2:55 pm
  • Well, I need the fragment to load, not the progress bar spinning - andrusha
  • And through hml tried to fasten them? - Gorets

0