Public Sub Initialize(Activity As B4XView, Callback As Object, Color As Int)
Prepare the instance before its other methods.
ELEVATEUI · B4A · XUI
Provide a consistent header with title and navigation actions.
Navigation & onboarding
Provide a consistent header with title and navigation actions.
Animated conceptual demonstration, not an exact Android control screenshot.
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.
Tutorials are based on existing project examples or audited APIs. Check each example’s prerequisites; B4A compilation is not claimed.
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.
16 audited signatures
Public Sub Initialize(Activity As B4XView, Callback As Object, Color As Int)
Prepare the instance before its other methods.
Public Sub setBackgroundColor(Color As Int)
Update background color at runtime when this setting changes.
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
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.
Public Sub setSubtitleText(Text As String)
Update subtitle text at runtime when this setting changes.
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.
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.
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.
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.
Public Sub getRightIcon As String
Read the current right icon value for validation or UI synchronization.
Returns: String
No custom Designer properties were found in the audited API.
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.
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
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.