#Region Project Attributes
#ApplicationLabel: b4aFlatTimeCollection
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: portrait
#CanInstallToExternalStorage: False
#End Region
#AdditionalRes: ..\FlatTimeCollectionRes
#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.
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 fcv1 As FlatClockView
Private fcv2 As FlatClockView
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")
'fcv1.BackgroundCircleColor = Colors.ARGB(100, 100, 100, 0) 'or comment it to have the default color applied
fcv1.setDarkTheme
'fcv1.setLightTheme
'fcv1.setDefaultTheme
fcv1.BigMarkColor = Colors.Blue
fcv1.SmallMarkColor = Colors.Red
fcv1.WithBackground = True
fcv1.MinIndicatorColor = Colors.Cyan
fcv1.HourIndicatorColor =Colors.Magenta
fcv1.SecIndicatorColor = Colors.White
'fcv1.Time_1 = 7 'set the hour only
'fcv1.Time_3 = "11:30:00" 'set the time from a string
'fcv1.setTime_2(5,43) 'set the hour and the minutes
'fcv1.setTime_4(7,36,45) 'set the hour, minutes, seconds
fcv1.setTimeToNow 'set the time to the device time
fcv2.BackgroundCircleColor = Colors.ARGB(200, 100, 100, 0) 'or comment it to have the default color applied
'fcv2.setDarkTheme
fcv2.setLightTheme
'fcv2.setDefaultTheme
fcv2.BigMarkColor = Colors.Magenta
fcv2.SmallMarkColor = Colors.Green
fcv2.WithBackground = False
fcv2.MinIndicatorColor = Colors.Red
fcv2.HourIndicatorColor =Colors.Yellow
fcv2.SecIndicatorColor = Colors.LightGray
'fcv2.Time_1 = 7 'set the hour only
fcv2.Time_3 = "11:37:43" 'set the time from a string
'fcv2.setTime_2(5,43) 'set the hour and the minutes
'fcv2.setTime_4(7,36,45) 'set the hour, minutes, seconds
'fcv2.setTimeToNow 'set the time to the device time
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub fcv1_tick
Log("clock 1 goes tick-tick")
End Sub
Sub fcv2_tick()
Log("clock 2 goes tick-tick")
End Sub