Dim Panels As List
Dim pnl As B4XView = Panels.Get(X)
If PanelWithComplexLayoutWhichShouldAlsoBeB4XView.Parent.IsInitialized Then PanelWithComplexLayoutWhichShouldAlsoBeB4XView.RemoveViewFromParent
pnl.AddView(PanelWithComplexLayoutWhichShouldAlsoBeB4XView, 0, 0, pnl.Width, pnl.Height)