#Region Project Attributes
#ApplicationLabel: B4A Example
#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
End Sub
Sub Globals
Dim SurfaceHolder As Panel
Dim SurfaceHolderColor As Int
End Sub
Sub Activity_Create(FirstTime As Boolean)
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Public Sub setSurfaceHolderColor(color As Int)
SurfaceHolder.Color = color
SurfaceHolderColor = color
End Sub
Public Sub YourSubName
If SurfaceHolderColor = Colors.ARGB(0,255,255,255) Then
SurfaceHolder.SetColorAnimated(666,Colors.ARGB(0,255,255,255),Colors.ARGB(255,255,255,255))
SurfaceHolderColor = Colors.ARGB(255,255,255,255)
Else
SurfaceHolder.SetColorAnimated(666,Colors.ARGB(255,255,255,255),Colors.ARGB(0,255,255,255))
SurfaceHolderColor = Colors.ARGB(0,255,255,255)
End If
End Sub