Sub Activity_Create(FirstTime As Boolean)
'panel gradient setup
Dim grPanel As GradientDrawable
Dim grPanelColors(2) As Int
grPanelColors(0) = Colors.RGB(25,25,25)
grPanelColors(1) = Colors.RGB(50,50,50)
grPanel.Initialize("BOTTOM_TOP", grPanelColors)
grPanel.CornerRadius = 10dip
'create sound panels
Dim spHeight As Int = 80dip
For i = 0 To 5
Dim p As Panel
p.Initialize("")
p.Background = grPanel
p.Tag = ("p" & i)
Log("Panel " & p.Tag & " loaded")
Activity.AddView(p, 0, spHeight * i, Activity.Width, spHeight)
' create a label for the panel
Dim l As Label
l.Initialize("")
l.TextSize = 24
l.Tag = ("l" & i)
l.Gravity = Gravity.CENTER_HORIZONTAL
l.Text = ("Panel " & i)
Log("Label " & l.Tag & " loaded")
p.AddView(l, p.Left, p.Top, p.Width, 30dip)
Next
End Sub