This is going to be a really simple answer I'm sure but I'm just trying to get my head round the various methods and started by trying to add a view to a panel
I started off just by adding a big green panel - worked fine. Now I want to add a big blue button to my big green panel. Problem is I see the blue button but no panel behind it?!
B4X:
Sub Activity_Create(FirstTime As Boolean)
Dim pnlHeight, pnlWidth As Int
pnlPlay.Initialize("pnlPlay")
pnlPlay.Color = Colors.green
pnlHeight = Activity.Height - 50
pnlWidth = Activity.Width - 50
lblPlay.Initialize("cell")
lblPlay.Color = Colors.Blue
pnlPlay.AddView(lblPlay, 50, 50, 100, 100)
Activity.AddView(pnlPlay, 0, 0, pnlWidth, pnlHeight)
End Sub
I started off just by adding a big green panel - worked fine. Now I want to add a big blue button to my big green panel. Problem is I see the blue button but no panel behind it?!