B4X Store

ELEVATEUI · B4A · XUI

UIDrawerMenu

Organize a large navigation hierarchy in a side drawer.

78 modules 1,780 APIs

Navigation & onboarding

What it solves

Organize a large navigation hierarchy in a side drawer.

Animated conceptual demonstration, not an exact Android control screenshot.

15 methods0 Designer1 events

When to use this module

In a multi-screen application, connect every menu action to a real destination and preserve the active selection.

Before integrating, examine its methods, events and Designer options.

B4A integration examples

Tutorials are based on existing project examples or audited APIs. Check each example’s prerequisites; B4A compilation is not claimed.

Practical tutorial awaiting verification

The public API, events and properties remain available. An isolated initialization is not presented as a full example; a tutorial will be added after a functional sequence is documented.

Public methods reference

15 audited signatures

public Sub Class_Globals

Use Class_Globals for its named operation; follow its exact signature.

Original catalog note: Applies background and border style to a B4XView from the shared dialog utility.

Public Sub Initialize(callback As Object, EventName As String, Parent As B4XView, SideWidth As Int, TopMenuList As Int, color As Int)

Prepare the instance before its other methods.

Original catalog note: Constructor

callback As ObjectEventName As StringParent As B4XViewSideWidth As IntTopMenuList As Intcolor As Int
Sub addpanel_title(Color As Int, bitmap As B4XBitmap, title_app As String, title_font As B4XFont, fontsize As Int, TitleColor As Int)

Use addpanel_title for its named operation; follow its exact signature.

Original catalog note: Adds a title panel with an image and text

Color As Intbitmap As B4XBitmaptitle_app As Stringtitle_font As B4XFontfontsize As IntTitleColor As Int
Sub addpanel_title2(color As Int, icon As Char, IconFont As B4XFont, IconColor As Int, title_app As String, title_font As B4XFont, fontsize As Int, TitleColor As Int)

Use addpanel_title2 for its named operation; follow its exact signature.

Original catalog note: Adds a title panel with an icon and text

color As Inticon As CharIconFont As B4XFontIconColor As Inttitle_app As Stringtitle_font As B4XFontfontsize As IntTitleColor As Int
Public Sub AddCustomTitlePanel(p As Panel)

Use AddCustomTitlePanel for its named operation; follow its exact signature.

Original catalog note: Adds a custom title panel

p As Panel
Sub setMenuColor(Color As Int)

Update menu color at runtime when this setting changes.

Original catalog note: Sets the menu background color

Color As Int
Sub getMenuColor As Int

Read the current menu color value for validation or UI synchronization.

Original catalog note: Returns the current menu color

Returns: Int

Sub getCenterpanel As Panel

Read the current centerpanel value for validation or UI synchronization.

Original catalog note: Returns the center panel of the drawer

Returns: Panel

Sub setOpenMenu(value As Boolean)

Update open menu at runtime when this setting changes.

Original catalog note: Opens or closes the menu

value As Boolean
Sub getOpenMenu As Boolean

Read the current open menu value for validation or UI synchronization.

Original catalog note: Returns whether the menu is open

Returns: Boolean

Sub getMenuPanel As B4XView

Read the current menu panel value for validation or UI synchronization.

Returns: B4XView

Public Sub AddMenuIconItem(EventName As String,IconText As String, FontIcon As B4XFont, ColorIcon As Int, Title As String, ColorTitle As Int, SubTitle As String, ColorSubtitle As Int)

Use AddMenuIconItem for its named operation; follow its exact signature.

Original catalog note: Adds a menu item with an icon, title, and subtitle <code>Private sub EventName_OptionMenuClicked</code>

EventName As StringIconText As StringFontIcon As B4XFontColorIcon As IntTitle As StringColorTitle As IntSubTitle As StringColorSubtitle As Int
Public Sub AddMenuImageItem(EventName As String,DirIcon As String,FileIcon As String, Title As String, ColorTitle As Int, SubTitle As String, ColorSubtitle As Int)

Use AddMenuImageItem for its named operation; follow its exact signature.

Original catalog note: Adds a menu item with an image, title, and subtitle <code>Private sub EventName_OptionMenuClicked</code>

EventName As StringDirIcon As StringFileIcon As StringTitle As StringColorTitle As IntSubTitle As StringColorSubtitle As Int
Public Sub AddMenuIconItem2(EventName As String,IconText As String, FontIcon As B4XFont, ColorIcon As Int, Title As String, ColorTitle As Int)

Use AddMenuIconItem2 for its named operation; follow its exact signature.

Original catalog note: <code>Private sub EventName_OptionMenuClicked</code>

EventName As StringIconText As StringFontIcon As B4XFontColorIcon As IntTitle As StringColorTitle As Int
Public Sub AddMenuImageItem2(EventName As String,DirIcon As String,FileIcon As String, Title As String, ColorTitle As Int)

Use AddMenuImageItem2 for its named operation; follow its exact signature.

Original catalog note: <code>Private sub EventName_OptionMenuClicked</code>

EventName As StringDirIcon As StringFileIcon As StringTitle As StringColorTitle As Int

Designer · 0

No custom Designer properties were found in the audited API.

Public events and how to implement them · 1

Initialize with Me and the event prefix Demo, then add the following handler to your B4A module. Names and arguments come from the library declaration.

click(index As Int, value As String)

Raised when the user taps the control; use it to trigger a real action.

B4A handler signature with Demo prefix

Private Sub Demo_click(index As Int, value As String)
    Log("click")
End Sub

For code-created controls use Initialize(Me, "Demo") when that signature exists; for Designer controls set the event name there. Replace Demo with the actual prefix.

Source: ElevateUI public API catalog; tutorials cross-checked against ElevateUI(6).b4xlib. Visualizations are illustrative; sample code requires B4A compilation.