Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim pnlTest As Panel
Dim gd1 As GradientDrawable
Dim cols1(2) As Int
End Sub
Sub Activity_Create(FirstTime As Boolean)
pnlTest.Initialize("")
Activity.AddView(pnlTest,5dip,5dip,100%x-10dip,100%y-10dip)
cols1(0) = Colors.Cyan
cols1(1) = Colors.Red
gd1.Initialize("TOP_BOTTOM",cols1)
gd1.CornerRadius=0
pnlTest.Background=gd1
' Activity.Background=gd1
End Sub
Sub Globals
Dim pnlTest As Panel
Dim gd1 As GradientDrawable
Dim cols1(2) As Int
End Sub
Sub Activity_Create(FirstTime As Boolean)
pnlTest.Initialize("")
Activity.AddView(pnlTest,5dip,5dip,100%x-10dip,100%y-10dip)
cols1(0) = Colors.Cyan
cols1(1) = Colors.Red
gd1.Initialize("TOP_BOTTOM",cols1)
gd1.CornerRadius=0
pnlTest.Background=gd1
' Activity.Background=gd1
End Sub