I used a SlideMenu class in my application ,how to implement the form call with B4XDrawer
i used this in slide menu
Sub SlideMenu_Click(Item As Object)
sm.Hide
Dim t As Int=Item
Select Case t
Case 1
StartActivity("neworder")
Case 2
StartActivity("market_offers")
End Select
End Sub
Edit: Cross platform example based on B4XPages https://www.b4x.com/android/forum/threads/b4x-b4xpages-b4xdrawer.120246/ A class that implements a sliding menu. Unlike the nice jfeinstein SlidingMenu library the drawer covers the activity instead of pushing it. It is similar to the various...
www.b4x.com
Write what you want to achieve and we will try to help.
following many samples , I just want to confirm if I am doing the right thing to manage multiple SECTIONS of and app, pis this the right way? thank you:
setup the Drawer
B4X:
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Drawer.Initialize(Me, "Drawer", Activity, 300dip)
Drawer.CenterPanel.LoadLayout("MainLayout")
Drawer.LeftPanel.LoadLayout("LeftMenu")
lsv_MenuListView.AddSingleLine("Home")
lsv_MenuListView.AddSingleLine("Contact Us")
lsv_MenuListView.AddSingleLine("Privacy Policy")
End Sub
when the list is clicked , erase all views froma CenterPanel and load the new design
B4X:
Sub lsv_MenuListView_ItemClick(position As Int, value As Object)
If position = 0 Then
Drawer.CenterPanel.RemoveAllViews
Drawer.CenterPanel.LoadLayout("MainLayout")
Drawer.LeftOpen=False
End If
If position = 1 Then
Drawer.CenterPanel.RemoveAllViews
Drawer.CenterPanel.LoadLayout("contactus")
Drawer.LeftOpen=False
End If
End Sub