Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Private CustomView1 As SwitchView
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
Dim panel1 As Panel
Dim panel2 As Panel
panel1.Initialize("panel1")
panel2.Initialize("panel2")
Activity.AddView(panel1,10dip,10dip,100%x,200dip)
Activity.AddView(panel2,10dip,210dip,100%x,200dip)
panel1.LoadLayout("switchlayout")
panel2.LoadLayout("switchlayout")
' Dim sw As SwitchView
' sw.Switch = panel1.GetView(0)
CustomView1.Checked = True
End Sub