I added setHasOptionsMenu(true); to ParentFragment and TextViewFragment in order to have personalized option menu.
Everything works fine. When I swype between child fragment 1 and child fragment 2 actionbar changes showing optionmenu 1 or optionmenu 2, but when screen rotation happens optionmenus in child fragments 1 and 2 are no longer called after each swype.