If the App starts with a hidden navigation bar then, all is ok, if i show it. But if i start the app with a displayed navigation bar and hide it then, then the root page is not resizing.
Start with hidden navigation bar
Start with shown navigation bar
B4X:
Private Sub IME_HeightChanged (NewHeight As Int, OldHeight As Int)
Root.Height = NewHeight
Panel1.Top = NewHeight - Panel1.Height
End Sub
Put this Activity.Height = NewHeight to the IME_HeightChanged sub in the Main Activity:
B4X:
Sub IME_HeightChanged (NewHeight As Int, OldHeight As Int)
Activity.Height = NewHeight
B4XPages.GetManager.RaiseEvent(B4XPages.GetManager.GetTopPage, "IME_HeightChanged", Array(NewHeight, OldHeight))
End Sub
Put this Activity.Height = NewHeight to the IME_HeightChanged sub in the Main Activity:
B4X:
Sub IME_HeightChanged (NewHeight As Int, OldHeight As Int)
Activity.Height = NewHeight
B4XPages.GetManager.RaiseEvent(B4XPages.GetManager.GetTopPage, "IME_HeightChanged", Array(NewHeight, OldHeight))
End Sub