[android-developers] Honeycomb / Fragments: can't remove a fragment added in XML layout

2011-03-09 Thread C. Plantier
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:

Re: [android-developers] Honeycomb / Fragments: can't remove a fragment added in XML layout

2011-03-09 Thread Dianne Hackborn
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