B4J Question [ABMAterial] SIDEBAR_AUTO Behaviour

incendio

Well-Known Member
Licensed User
Longtime User
Hello guys,

I have this code
B4X:
page.NavigationBar.Initialize(page, "control_bar", ABM.SIDEBAR_AUTO, Title, True, True, Wdth, 49, sbtopimg, ABM.COLLAPSE_EXPANDABLE, "nav1theme")
page.NavigationBar.IsTextSelectable = False
page.NavigationBar.TopBarDropDownConstrainWidth = False
page.NavigationBar.AddTopItem("Delete", "Delete", "mdi-content-clear", "", ABM.ICONALIGN_LEFT)
page.NavigationBar.AddTopItem("Add", "Add", "mdi-content-add", "", ABM.ICONALIGN_LEFT)
page.NavigationBar.AddTopItem("Unlock", "Unlock", "mdi-action-lock-open", "", ABM.ICONALIGN_LEFT)
page.NavigationBar.AddTopItem("Save", "Save", "mdi-content-save", "", ABM.ICONALIGN_LEFT)
page.NavigationBar.AddTopItem("Back","Back","mdi-hardware-keyboard-backspace","../About/about.html",ABM.ICONALIGN_LEFT)

On desktop, it showed OK, no hamburger icon, no side bar & top menu items displayed correctly.

But on 7" tablet in portrait mode, display was weird, top menu items moved to side bar but also still displayed. Isn't it with SIDEBAR_AUTO, top menu items shouldn't be displayed?

Take a look of the screenshot :
s.jpg
 
Top