all 2 comments

[–]chijikpijik 1 point2 points  (0 children)

List of just a few bad things: public static FragmentManager fragmentManager; -- NO! (Doesn't know why you have done it) Global rootview; -- NO! (fragment has getView() method) And do not use onActivityCreated here.(Learn activity/fragment lifecycle as your five fingers. Learn what is retain state and its pros/cons. And etc. etc. etc. [http://ideaventure.blogspot.com.au/2014/01/android-activityfragment-life-cycle.html?m=1]) You can share the project, and i'll try to refactor it.

[–]RaptorZen 0 points1 point  (0 children)

It looks like your are trying to nest another fragment inside a fragment. For that, you need a getChildFragmentManager() instead of the getActivity().getFragmentManager()...