Android Question B4XPages - IME problems with fixed navigation bar

Alexander Stolte

Expert
Licensed User
Longtime User
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
 

Attachments

  • CrossPlatformProject.zip
    215.6 KB · Views: 104
Solution
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
This fix it

Alexander Stolte

Expert
Licensed User
Longtime User
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
This fix it
 
Upvote 0
Solution
Cookies are required to use this site. You must accept them to continue using the site. Learn more…