Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Private clv As CircleLoadingView
Private t As Timer
Private p As Int
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 bmp As Bitmap
bmp.Initialize(File.DirAssets,"overlay.png")
clv.ImageBitmap = bmp
p = 0
clv.Percent = p
clv.AnimationDuration = 500
clv.CircleRadius = 75dip
clv.CircleStrokeSize = 10dip
t.Initialize("Timer",50)
t.Enabled = True
End Sub
Sub Timer_Tick
If p <100 Then
p = p +1
clv.Percent = p
Else
t.Enabled = False
End If
End Sub