Hi all,
I'm testing a very cool (and very useful) tutorial named "B4XPages Splash Screen" by @Erel
POSSIBLE BUG ?
If I install and run it as it is (without changes) I see the splash with the B4X logo.
After the logo disappear I see a white empty screen with a text on top that says "MainPage". If I check the "B4XMainPage" code I see:
The problem is that Root.LoadLayout("MainPage") should load the "MainPage.bal" layout file that contains a panel, a button and a label. Instead I see a white empty screen.
AFTER MY CODE CHANGE...
If I comment the "Wait For (ShowSplashScreen)..." all work as expected. The MainPage.bal is loaded. and I can see the grey Button with "Click" text and the belove label text.
So the solution is to disable (comment) the code belove ?
P.S.
Another thing: how to support also animated images instead of static logo ?
Thanks in advance for your help!
Luca.
I'm testing a very cool (and very useful) tutorial named "B4XPages Splash Screen" by @Erel
[B4X] [B4XPages] Splash Screen
B4A, B4i and B4J splash screen implementation. The implementation is different in each platform. 1. Don't miss the manifest editor code in B4A. 2. Don't use %y in the code. Use Root.Height instead (you can use %y in the designer script).
www.b4x.com
POSSIBLE BUG ?
If I install and run it as it is (without changes) I see the splash with the B4X logo.
After the logo disappear I see a white empty screen with a text on top that says "MainPage". If I check the "B4XMainPage" code I see:
B4X:
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Wait For (ShowSplashScreen) Complete (Unused As Boolean)
Root.LoadLayout("MainPage")
'don't use %y in your code! Use Root.Height instead.
End Sub
The problem is that Root.LoadLayout("MainPage") should load the "MainPage.bal" layout file that contains a panel, a button and a label. Instead I see a white empty screen.
AFTER MY CODE CHANGE...
B4X:
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
'Wait For (ShowSplashScreen) Complete (Unused As Boolean)
Root.LoadLayout("MainPage")
'don't use %y in your code! Use Root.Height instead.
End Sub
If I comment the "Wait For (ShowSplashScreen)..." all work as expected. The MainPage.bal is loaded. and I can see the grey Button with "Click" text and the belove label text.
So the solution is to disable (comment) the code belove ?
B4X:
Wait For (ShowSplashScreen) Complete (Unused As Boolean)
P.S.
Another thing: how to support also animated images instead of static logo ?
Thanks in advance for your help!
Luca.