The native APIs running in Honeycomb work the same as in the libarary support, so you cannot delete an instance of the fragment that was declared in your layout XML file.
With FragmentTransactions, you manipulate ViewGroups such as LinearLayouts, which act as containers for storing the layout of other fragments. However, when you declare a Fragment in your layout, it does not have a container in the same sense, because it is constantly part of the View hierarchy, so you cannot delete it. This is by design to support things like navigational snippets that you never delete anyway. :)
One thing, interesting, and I discovered this by accident, is that you can add new fragments to a fragment that was declared with a tag in your layout; and it acts like a container for other fragments
David C. Sainte-Claire Jan 18 2018-12-18T00: 00Z
source share