iOS Question B4X Drawer does not appear open

ThePuiu

Active Member
Licensed User
Longtime User
In B4I when the activity opens, I can set Drawer to be displayed. In B4I, the same code does not display the Drawer when page opened ...
I used the code:
B4X:
Public Sub Show
    If pg.IsInitialized = False Then
        pg.Initialize("pg")
        pg.RootPanel.LoadLayout("MainPageLayout")
        pg.HideBackButton = True 
    End If

    Main.NavControl.ShowPage(pg)
    Main.NavControl.ToolBarVisible = False
    
    DrawerMenu.Initialize(Me, "drawermenu", pg.RootPanel, 300dip)
    DrawerMenu.CenterPanel.LoadLayout("MainPageLayout")
    DrawerMenu.LeftPanel.LoadLayout("DrawerMenu")
      
    LoadDrawerItems
    
    DrawerMenu.LeftOpen = True
End Sub
 
Top