Hi all,
I'm implementing an app that is based on B4XPages by @Erel (https://www.b4x.com/android/forum/t...k-for-managing-multiple-pages.118901/#content).
I use the MainPage to handle an animated splash based on B4XGifView (see relevant code below).
When the timer is done then I show the home page (the first B4XPage after the MainPage).
The problem is about app navigation. When the user touch the back icon the app show the (empty) MainPage and the user lose the app navigation and gets trapped within the MainPage, see the below screens:
@LucaMs suggest me a workaround (to put inside the B4XPage "Home") in order to avoid this navigation issue:
It works (thanks @LucaMs) but I think that isn't the best solution (in this case).
From a user perspective, it is misleading because the user expects that icon to take him to the previous page but in reality nothing happens.
Is there a B4XPages native solution the allow to hide the back icon only for this specific page (B4XPage "Home") ?
Thanks in advance for your help.
Luca.
I'm implementing an app that is based on B4XPages by @Erel (https://www.b4x.com/android/forum/t...k-for-managing-multiple-pages.118901/#content).
I use the MainPage to handle an animated splash based on B4XGifView (see relevant code below).
When the timer is done then I show the home page (the first B4XPage after the MainPage).
B4X:
Private Sub B4XPage_Created (Root1 As B4XView)
B4XPages.GetManager.TransitionAnimationDuration = 0
Root = Root1
Root.LoadLayout("splash")
'...........
End Sub
Private Sub tmrSplashAnim_Tick
tmrSplashAnim.Enabled = False
pnSplashAnim.Visible = False
B4XPages.ShowPage("AppHome")
End Sub
The problem is about app navigation. When the user touch the back icon the app show the (empty) MainPage and the user lose the app navigation and gets trapped within the MainPage, see the below screens:
@LucaMs suggest me a workaround (to put inside the B4XPage "Home") in order to avoid this navigation issue:
B4X:
Private Sub B4XPage_CloseRequest As ResumableSub
Return False
End Sub
It works (thanks @LucaMs) but I think that isn't the best solution (in this case).
From a user perspective, it is misleading because the user expects that icon to take him to the previous page but in reality nothing happens.
Is there a B4XPages native solution the allow to hide the back icon only for this specific page (B4XPage "Home") ?
Thanks in advance for your help.
Luca.