Hi
following is my current page. I will put a button in the right upper side.
When i toggle click the button, How could i hide and show the left sidemebu !?
You can't control the main sidebar with other button than the hamburger button (visible on tablet on mobile).
You can make the sidebar always hidden (on all device types) and only show it when you press the hamburger button, to do this you need to change change your barType variable from the NavigarionBar Initalize method, into ABM.SIDEBAR_MANUAL_ALWAYSHIDE:
B4X:
' new behaviour, the sidebar is ALWAYS hidden
page.NavigationBar.Initialize(page, "nav1", ABM.SIDEBAR_MANUAL_ALWAYSHIDE, Title, True, True, 330, 48, sbtopimg, ABM.COLLAPSE_ACCORDION, "nav1theme")
This code is from the Demo project provided with ABMaterial library.