Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim ibv As ImageBadgeView
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")
ibv.Initialize("ibv")
Activity.AddView(ibv,0,0,50%x,50%y)
ibv.SetBackgroundImage(LoadBitmap(File.DirAssets,"bg.png"))
ibv.BadgePosition=ibv.BADGEPOSITION_CENTER
ibv.BadgeValue=3
ibv.BadgePadding=6
End Sub
Sub ibv_click
ibv.BadgeValue=Rnd(3,9)
End Sub