#Region Project Attributes
#ApplicationLabel: b4aRevealTextView
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: unspecified
#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.
Dim 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 rtv1 As RevealTextView
Private rtv2 As RevealTextView
Private rtv3 As RevealTextView
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)
rtv1.RevealText = "Hello B4A"
rtv1.RevealTextColor = Colors.Red
rtv1.RevealTextSize = 30
rtv1.RevealAnimationDuration = 4500
rtv2.RevealText = "Hello B4J"
rtv2.RevealTextColor = Colors.Green
rtv2.RevealTextSize = 35
rtv2.RevealAnimationDuration = 4000
rtv3.RevealText = "Hello B4I"
rtv3.RevealTextColor = Colors.Yellow
rtv3.RevealTextSize = 40
rtv3.RevealAnimationDuration = 3500
End Sub
Sub Activity_Resume
t.Enabled = True
End Sub
Sub Activity_Pause (UserClosed As Boolean)
t.Enabled = False
End Sub
Sub t_tick
rtv1.RUN
rtv2.RUN
rtv3.RUN
End Sub