On the page, I load a layout with some visual objects. Then I dynamically create and add the panel. But the panel don't covers the objects from the layout. BringToFront won't help. How to overlay layout?
B4X:
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("MainPage")
Cover
End Sub
Private Sub Cover
pOverlay = xui.CreatePanel("")
pOverlay.SetColorAndBorder(xui.Color_Green, 1%x, xui.Color_Black, 0)
Root.AddView(pOverlay, 0, 0, 100%x, 50%y)
pOverlay.BringToFront 'not work
End Sub