Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Private hsvi1 As HorizontalStepsViewIndicator
Private hsv1 As HorizontalStepView
Private vsv1 As VerticalStepView
Private vsvi1 As VerticalStepViewIndicator
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("LayoutHorizontal")
Dim l As List
l.Initialize
l.Add("1")
l.Add("2")
l.Add("3")
hsv1.setStepViewTexts(l)
vsv1.setStepViewTexts(l)
End Sub
Sub Activity_Resume
Dim r As Int = Rnd(0,4)
hsv1.setStepsViewIndicatorComplectingPosition(r)
hsvi1.ComplectingPosition = r
vsv1.setStepsViewIndicatorComplectingPosition(r)
vsvi1.ComplectingPosition = r
End Sub