B4X Store

ELEVATEUI · B4A · XUI

UITitleBar

Provide a consistent header with title and navigation actions.

78 modules 1,780 APIs

Navigation & onboarding

What it solves

Provide a consistent header with title and navigation actions.

Animated conceptual demonstration, not an exact Android control screenshot.

16 methods0 Designer2 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

16 audited signatures

Public Sub Initialize(Activity As B4XView, Callback As Object, Color As Int)

Prepare the instance before its other methods.

Activity As B4XViewCallback As ObjectColor As Int
Public Sub setBackgroundColor(Color As Int)

Update background color at runtime when this setting changes.

Color As Int
Public Sub setHeight(Value As Int)

Update height at runtime when this setting changes.

Original catalog note: Altura del encabezado. El contenido se reacomoda automáticamente. Ejemplo: TitleBar.Height = 14%y

Value As Int
Public Sub getHeight As Int

Read the current height value for validation or UI synchronization.

Returns: Int

Public Sub setTitleText(Text As String)

Update title text at runtime when this setting changes.

Text As String
Public Sub setSubtitleText(Text As String)

Update subtitle text at runtime when this setting changes.

Text As String
Public Sub getSubtitleText As String

Read the current subtitle text value for validation or UI synchronization.

Returns: String

Public Sub getTitleText As String

Read the current title text value for validation or UI synchronization.

Returns: String

Public Sub setTitleTextColor(Color As Int)

Update title text color at runtime when this setting changes.

Color As Int
Public Sub getTitleTextColor As Int

Read the current title text color value for validation or UI synchronization.

Returns: Int

Public Sub setTitleFont(Font As B4XFont)

Update title font at runtime when this setting changes.

Font As B4XFont
Public Sub getTitleFont As B4XFont

Read the current title font value for validation or UI synchronization.

Returns: B4XFont

Public Sub setLeftIcon(Icon As String, font As B4XFont, color As Int)

Update left icon at runtime when this setting changes.

Icon As Stringfont As B4XFontcolor As Int
Public Sub getLeftIcon As String

Read the current left icon value for validation or UI synchronization.

Returns: String

Public Sub setRightIcon(Icon As String, font As B4XFont, color As Int)

Update right icon at runtime when this setting changes.

Icon As Stringfont As B4XFontcolor As Int
Public Sub getRightIcon As String

Read the current right icon value for validation or UI synchronization.

Returns: String

Designer · 0

No custom Designer properties were found in the audited API.

Public events and how to implement them · 2

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.

LeftIconClicked

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

B4A handler signature with Demo prefix

Private Sub Demo_LeftIconClicked()
    Log("LeftIconClicked")
End Sub
RightIconClicked

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

B4A handler signature with Demo prefix

Private Sub Demo_RightIconClicked()
    Log("RightIconClicked")
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.