I have a panel that contains other views.
Normally, if I were to get rid of the panel (e.g. with RemoveView), I would first remove all of its child views using RemoveAllViews.
But what happens if I just leave the panel there (for later reuse), and later initialize it again (and re-add it to the activity)? What happens to its former child views? Are they effectively removed from it as if I had done a RemoveAllViews? Or do they get stuck in limbo?
The latter is what my current code does, and I'm OK with leaving it that way if I'm not leaving zombie views lying around.
Normally, if I were to get rid of the panel (e.g. with RemoveView), I would first remove all of its child views using RemoveAllViews.
But what happens if I just leave the panel there (for later reuse), and later initialize it again (and re-add it to the activity)? What happens to its former child views? Are they effectively removed from it as if I had done a RemoveAllViews? Or do they get stuck in limbo?
The latter is what my current code does, and I'm OK with leaving it that way if I'm not leaving zombie views lying around.