You don't need a library to show the splash screen. Add your logo/icon in Main module, it will be shown when your app start. Add a timer to call next screen after a time, remember to HideBackButton too. Done!
You don't need a library to show the splash screen. Add your logo/icon in Main module, it will be shown when your app start. Add a timer to call next screen after a time, remember to HideBackButton too. Done!
I've just started in B4i, i want to try for the begining. i was wondering if someone will help me to do the same. maybe it is a simple thing to do a splash screen, but as i said i am new in this. in B4A I used a library for this, but here i'm lost.
Example that uses CallSubPlus to show a splash screen for 5 seconds:
B4X:
Sub Process_Globals
Public App As Application
Public NavControl As NavigationController
Private Page1 As Page
Private csu As CallSubUtils
End Sub
Private Sub Application_Start (Nav As NavigationController)
NavControl = Nav
Nav.NavigationBarVisible = False
Dim splashPage As Page
splashPage.Initialize("")
splashPage.RootPanel.Color = Colors.Red
csu.Initialize
csu.CallSubDelayedPlus(Me, "AfterSplash", 5000)
NavControl.ShowPage(splashPage)
Page1.Initialize("Page1")
Page1.RootPanel.LoadLayout("1")
End Sub
Private Sub AfterSplash 'ignore
NavControl.SetNavigationBarVisibleAnimated(True)
NavControl.SetPagesStack(Array(Page1))
End Sub