Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Private pn As Panel
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")
pn.Initialize("pn")
Activity.AddView(pn, 10dip,10dip, 100dip,100dip)
Dim cd As ColorDrawable
cd.Initialize(Colors.Red, 0)
pn.Background=cd
End Sub
Sub pn_Click
Dim cd As ColorDrawable
cd.Initialize(Colors.Red, 20dip)
pn.Background=cd
End Sub