You can directly call
getParentFragmentManager()
to get the fragment manager. Note that getFragmentManager() also works but has been marked as deprecated.
More Related Contents:
- Difference between Activity and FragmentActivity
- Fragment must be a public static class to be properly recreated from instance state
- Android Fragments. Retaining an AsyncTask during screen rotation or configuration change
- How to add a Fragment inside a ViewPager using Nested Fragment (Android 4.2)
- PreferenceFragmentCompat requires preferenceTheme to be set
- Best practice for nested fragments in Android 4.0, 4.1 (
- Start an activity from a fragment
- TabHost with Fragments and FragmentActivity
- Android.app Fragments vs. android.support.v4.app using ViewPager?
- What is the difference between Fragment and FragmentActivity?
- How to get Toolbar from fragment?
- Fragment or Support Fragment?
- Nested fragments disappear during transition animation
- Set state of BottomSheetDialogFragment to expanded
- refresh fragment UI from fragmentActivity
- How to handle onContextItemSelected in a multi fragment activity?
- FragmentPagerAdapter getItem is not called
- FragmentActivity can not be tested via ActivityInstrumentationTestCase2
- FragmentStatePagerAdapter with ChildFragmentManager – FragmentManagerImpl.getFragment results in NullPointerException
- FragmentTransaction hide/show doesn’t work sometimes
- Fragment standard transition not animating
- How to determine when Fragment becomes visible in ViewPager
- IllegalStateException: Can not perform this action after onSaveInstanceState with ViewPager
- Hide/Show bottomNavigationView on Scroll
- How to use and style new AlertDialog from appCompat 22.1 and above
- Rendering problems in Android Studio v 1.1 / 1.2
- Android – save/restore fragment state
- findFragmentById always returns null
- How to replace the activity’s fragment from the fragment itself?
- Placing ViewPager as a row in ListView