Public Sub Initialize (Callback As Object, EventName As String)
Prepare the instance before its other methods.
ELEVATEUI · B4A · XUI
Group related content and control tab selection.
Navigation & onboarding
Group related content and control tab selection.
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.
10 audited signatures
Public Sub Initialize (Callback As Object, EventName As String)
Prepare the instance before its other methods.
Public Sub CreateTabGroup(Parent As B4XView, Left As Int, Top As Int, Width As Int, Height As Int)
Use CreateTabGroup for its named operation; follow its exact signature.
Public Sub AddTab(TabName As String, ContentPanel As B4XView)
Use AddTab for its named operation; follow its exact signature.
Original catalog note: Adds a standard text tab
Public Sub AddTabWithIcon(TabName As String, ContentPanel As B4XView, IconChar As String, IconFont As B4XFont, IconColor As Int)
Use AddTabWithIcon for its named operation; follow its exact signature.
Original catalog note: Adds a tab with a font icon (e.g. FontAwesome / Material Icons)
Public Sub AddTabWithImage(TabName As String, ContentPanel As B4XView, Image As B4XBitmap)
Use AddTabWithImage for its named operation; follow its exact signature.
Original catalog note: Adds a tab with a bitmap image
Public Sub AddTabWithImageFile(TabName As String, ContentPanel As B4XView, Dir As String, FileName As String)
Use AddTabWithImageFile for its named operation; follow its exact signature.
Original catalog note: Adds a tab with an image file from assets or dir
Public Sub SelectTab(Index As Int)
Use SelectTab for its named operation; follow its exact signature.
Public Sub GetTabTitle(Index As Int) As String
Use GetTabTitle for its named operation; follow its exact signature.
Returns: String
Public Sub getCurrentIndex As Int
Read the current current index value for validation or UI synchronization.
Returns: Int
Public Sub ClearTabs
Use ClearTabs for its named operation; follow its exact signature.
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 a selection or value changes; use it to update dependent data.
B4A handler signature with Demo prefix
Private Sub Demo_TabChanged(TabIndex As Int, TabName As String)
Log("TabChanged")
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.
Public TabWidth As Int = 100dipPublic ActiveColor As Int = 0xFFFDE047 ' YellowPublic InactiveColor As Int = 0xFF94A3B8 ' Slate 400Public ActiveIconColor As Int = 0xFFFDE047Public InactiveIconColor As Int = 0xFF94A3B8Public IndicatorHeight As Int = 3dipPublic TabHeight As Int = 44dipPublic TextSize As Float = 14Public IconSize As Float = 18Public IconPosition As String = "LEFT" ' "LEFT" o "TOP"Public TextFont As B4XFont