Hi, I'm having difficulty in showing a splash screen before showing the layout.
The splash screen shows but then the controls of the layout appear on top of it before the splash transfers to the layout.
As you can see in the attached code, I even tried using a blank layout before the main layout, but the main layout controls still appear on the splash screen.
I tried using CallSubDelayed but I guess I'm not using it correctly.
How can I show the splash screen followed, after an interval, by the main layout?
Grateful for any help...
The splash screen shows but then the controls of the layout appear on top of it before the splash transfers to the layout.
As you can see in the attached code, I even tried using a blank layout before the main layout, but the main layout controls still appear on the splash screen.
I tried using CallSubDelayed but I guess I'm not using it correctly.
How can I show the splash screen followed, after an interval, by the main layout?
Grateful for any help...
B4X:
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim MyFade As SplashFade
Dim Exitcmnd As Button
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("Layout1")
Activity.LoadLayout("Start")
splash
changelayout
End Sub
Sub Activity_Resume
End Sub
Sub changelayout
Activity.LoadLayout("Main_Bidding")
End Sub
Sub splash
MyFade.Initialize(Activity, Me, "BridgeImagesmall.bmp", Gravity.CENTER, 3000, 200, "Left", False)
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Exitcmnd_Click
ExitApplication
End Sub