Following this thread https://www.b4x.com/android/forum/threads/iphone-x-safe-area.88095/#content
I have modified my code to suit well the Iphone X screen not using the dangerous area.
It works ok, but the problem is when I switch to a secondary page: I can see the top left toolbar text (back button), but I'm no longer able to modify the text in runtime and have events when I click it.
This is the code of a secondary page:
Other events of Page1, for example "Page1_KeyboardStateChanged" works, but not "Page1_BarButtonClick"
Where I'm wrong ?
I have modified my code to suit well the Iphone X screen not using the dangerous area.
It works ok, but the problem is when I switch to a secondary page: I can see the top left toolbar text (back button), but I'm no longer able to modify the text in runtime and have events when I click it.
This is the code of a secondary page:
B4X:
Public Sub Show
pg.Initialize("Page1")
pg.RootPanel.LoadLayout("Root")
Dim buttons As List >>> these lines of code to change
buttons.Initialize >>> the back button text no longer works
Dim newButton As BarButton
newButton.InitializeText("Salva","Salva")
buttons.Add(newButton)
pg.TopLeftButtons=buttons
PnlRoot.LoadLayout("WebSync")
pg.Title="WebSync"
pg.RootPanel.Color = Colors.white
Main.NavControl.ShowPage(pg)
Main.NavControl.NavigationBarVisible = True
Main.NavControl.ToolBarVisible=False
End Sub
Sub Page1_BarButtonClick (Tag As String) >>> and this event is no longer fired
Select Tag
Case "Salva"
Other events of Page1, for example "Page1_KeyboardStateChanged" works, but not "Page1_BarButtonClick"
Where I'm wrong ?