Yes. So the only way is at transaction time, e.g. using add
, replace
, or as part of the layout.
I determined this through an examination of the compatibility sources as I briefly looked for similar at some point in the past.
More Related Contents:
- Why fragments, and when to use fragments instead of activities?
- Android Fragments and animation
- How do I add a Fragment to an Activity with a programmatically created content view
- MapView in a Fragment (Honeycomb)
- Fragments onResume from back stack
- Is there a way to get references for all currently active fragments in an Activity?
- Android replace the current fragment with another fragment
- Fragment already added IllegalStateException
- Retain the Fragment object while rotating
- Is there a method that works like start fragment for result?
- Retain Fragment state between Activities
- My list view is lagging can anyone help me to fix this?
- Android Fragment handle back button press [duplicate]
- Understanding Fragment’s setRetainInstance(boolean)
- Animate the transition between fragments
- Activity, AppCompatActivity, FragmentActivity, and ActionBarActivity: When to Use Which?
- Adding button action in custom notification
- Android. Fragment getActivity() sometimes returns null
- How to use setArguments() and getArguments() methods in Fragments?
- Activity Layout: Fragment class: vs android:name attributes
- Removing a Fragment from the back stack
- Start an activity from a fragment
- Can I use view pager with views (not with fragments)
- ViewPager offscreen page limit
- Add fragment into listview item
- Android: fragments overlapping issue
- Navigation Drawer with backword compatibility android
- How do I dim the system bar in Android 3.0 (Honeycomb)?
- Fragment view in ViewPager is not restored when resuming
- Android Fragment onCreateView vs. onActivityCreated