'Activity module
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim Clrs(2) As Int
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim btnHelloWord As Button
Dim gdwGradient As GradientDrawable
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Inizializzo oggetto
btnHelloWord.Initialize("")
Clrs(0)=Colors.Red
Clrs(1)=Colors.Black
gdwGradient.Initialize("TOP_BOTTOM",Clrs)
gdwGradient.CornerRadius=40dip
btnHelloWord.Text="Cliccami!!!"
btnHelloWord.TextColor=Colors.Black
btnHelloWord.Background=gdwGradient
'lo sistemo nell'activity
Activity.AddView(btnHelloWord,10dip,10dip,100dip,100dip)
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub