Hello
I have a question.
In my app i have a multiple pages. The main page is load by:
in layout "SafeAreaPanel" i have a "Panel_root" and i load to this panel other layout ("main")
It's ok in iPhone X. Other pages i call by:
Account is other code module. In this module in "Show" sub i have:
Here is a problem with bottom safe area. The layout is on the system home button.
How can I set the layout height in a different page without main.
Thanks!
I have a question.
In my app i have a multiple pages. The main page is load by:
B4X:
Private Sub Application_Start (Nav As NavigationController)
NavControl=Nav
pg.Initialize("pg")
pg.RootPanel.LoadLayout("SafeAreaPanel")
Panel_root.LoadLayout("main")
NavControl.NavigationBarVisible = False
NavControl.ShowPage(pg)
end sub
Private Sub pg_resize(Width As Int, Height As Int)
Dim r As Rect = pg.SafeAreaInsets
If r.Bottom>0 Or r.Left>0 Then
IphoneX=True
Else
IphoneX=False
End If
Panel_root.SetLayoutAnimated(0, 1, r.Left, r.Top, Width - r.Right - r.Left, Height - r.Bottom - r.Top)
ScreenX=Width - r.Right - r.Left
ScreenY=Height - r.Bottom - r.Top
End Sub
in layout "SafeAreaPanel" i have a "Panel_root" and i load to this panel other layout ("main")
It's ok in iPhone X. Other pages i call by:
B4X:
Sub MenuAccount_Click
Account.Show
End Sub
Account is other code module. In this module in "Show" sub i have:
B4X:
If pg.IsInitialized = False Then
pg.Initialize("pg")
pg.RootPanel.LoadLayout("SafeAreaPanel")
panel_root.LoadLayout("Account")
panel_root.Width=Main.ScreenX
panel_root.Height=Main.ScreenY
End If
Here is a problem with bottom safe area. The layout is on the system home button.
How can I set the layout height in a different page without main.
Thanks!