As I understand it, manipulating the layout’s children directly isn’t really supported (which would explain why you didn’t find a way).
I think I’d recommend:
- Try placing Views directly into the VLayout, instead of HLayouts.
- Then each View has an HLayout as its layout.
At that point, you can delete one of the VLayout’s members by calling .remove on the View object. That is, you can’t tell the HLayout to go away – but if the HLayout is in its own View, you can tell the View to go away.
I think views can also be made invisible (.visible_(boolean) I think? I didn’t look it up, maybe that’s wrong), but they probably still take up space even when hidden.
hjh