Your code is wrong.
You need to load the main layout to Drawer.CenterPanel.
Thanks for answering.
I forgot to say that I had already done that test, but it causes the events of the objects to not work in their respective pages.
What do I need to make the events work?
[CODE lang="b4x" title="B4XMainPage" highlight="3"]
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
'Root.LoadLayout("MainPage") '<- - - - - - -
MIzq.Initialize(Me, Root, "MainPage", True)
B4XPages.AddMenuItem(Me, "MENU")
End Sub[/CODE]
[CODE lang="b4x" title="MenuIzq" highlight="4"]Public Sub Initialize(CallBackX As Object, Root As B4XView, IdPage As String, InicializarIdPages As Boolean)
'
Drawer.Initialize(CallBackX, "Drawer", Root, 300dip)
Drawer.CenterPanel.LoadLayout(IdPage) '<- - - - - - -
Drawer.LeftPanel.LoadLayout("MenuLeft")
CargaItemMenu("1")
'
B4XPag1.Initialize
If InicializarIdPages Then
CargarIdPages
End If
'
End Sub[/CODE]