Not sure where I missed this loading the layout in the Sliding Panels in the documentation. So I have been just working with trying to change example form code. Any help much appreciated.:BangHead:. I have been working over the example just to get a working code.
I am trying to have menu on each side of screen that slide out/slide back on button_click. Panel in middle is transparent
B4X:
Dim panels(3) As Panel
Dim lbl As Label
For i = 0 To panels.Length - 1
panels(i).Initialize("panels")
panels(1).LoadLayout("left") '<----freezes here in debug not initialized
panels(3).LoadLayout("right)
panels(i).Color = Colors.Transparent
lbl.Initialize("")
lbl.Text = "I'm Panel: " & i
lbl.TextSize = 20
lbl.TextColor = Colors.White
panels(2).AddView(lbl, 20%x, 40%y, 60%x, 30dip)
Activity.AddView(panels(i), 100%x, 0, 100%x, 100%y - 80dip) 'add the panel to the layout
Activity.AddMenuItem("Panel #" & i, "Menu")
Next
I am trying to have menu on each side of screen that slide out/slide back on button_click. Panel in middle is transparent