#Region Project Attributes
#ApplicationLabel: ArcProgressStackView
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: portrait
#CanInstallToExternalStorage: False
#End Region
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Private t As Timer
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.
Private apsv1 As ArcProgressStackView
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("main")
t.Initialize("t", 5000)
apsv1.AnimationDuration = 3000
apsv1.IsRounded = True 'give the indicators a rounded or a square finish
apsv1.TextColor = Colors.White
apsv1.IsDragged = True 'you can drag the individual indicators with your finger to increase/decrease the progress
apsv1.ShadowDistance = 0
apsv1.ShadowColor = Colors.White
apsv1.DrawWidthFraction = 0.65
apsv1.IsAnimated = True
apsv1.IsShadowed = True
apsv1.ModelBgEnabled = True
apsv1.ProgressModelOffset = 0
apsv1.ShadowAngle = 0
apsv1.ShadowRadius = 0
apsv1.ShadowDistance = 0
apsv1.StartAngle = 0 '3 o'clock position
apsv1.SweepAngle = 360 'eg 180 will only draw 1/2 a circle for the full range
apsv1.Interpolator = apsv1.ANTICIPATEOVERSHOOTINTERPOLATOR 'this is one of 8 possible interpolators to select from
apsv1.IndicatorOrientation = apsv1.INDICATORORIENTATIONHORIZONTAL 'it changes the progress text orientation
apsv1.NumberOfIndicators = 3 'the following 4 arrays need to contain the same number of elements as apsv1.NumberOfIndicators = ......
apsv1.IndicatorText = Array As String("A", "B", "C")
apsv1.IndicatorColors = Array As Int(Colors.Blue, Colors.Magenta, Colors.Red)
apsv1.IndicatorBgColors = Array As Int(Colors.DarkGray, Colors.Gray, Colors.LightGray)
apsv1.IndicatorProgress = Array As Float(15.0, 30.0, 60.0)
apsv1.drawArc
End Sub
Sub Activity_Resume
t.Enabled = True
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub apsv1_progress_changed (index As Int, value As Float)
Log("index = " & index & " value = " & value)
End Sub
Sub t_tick
apsv1.IndicatorProgress = Array As Float(Rnd(0, 101), Rnd(0,101), Rnd(0,101))
apsv1.drawArc
End Sub