Hi,
I can't remove a Fragment that was added in an XML layout file, using
a FragmentTransaction. I don't understand why, I probably
misunderstood something and I would appreciate some explanations.
Here's a simple code to demonstrate my problem :
** Main layout, main.xml:
To be honest, I'm not sure if this should work. Defining fragments in XML
is mostly intended for things that are going to stay around. If you are
going to add and remove, you should probably consistently do it dynamically.
I can look into this for a future release, but please note that whatever
2 matches
Mail list logo