Public Sub Initialize (Callback As Object, EventName As String)
Prepare the instance before its other methods.
Original catalog note: Initializes the class with a callback object and event name
ELEVATEUI · B4A · XUI
Show which onboarding or carousel page is active. Pair with a screen slider.
Navigation & onboarding
Show which onboarding or carousel page is active. Pair with a screen slider.
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.
8 audited signatures
Public Sub Initialize (Callback As Object, EventName As String)
Prepare the instance before its other methods.
Original catalog note: Initializes the class with a callback object and event name
Public Sub DesignerCreateView (Base As Object, Lbl As Label, Props As Map)
Invoked automatically by the B4A Visual Designer; do not call manually.
Original catalog note: Configures the custom view using designer properties This method is called automatically when the view is added in the Visual Designer.
Public Sub getCurrentPage As Int
Read the current current page value for validation or UI synchronization.
Original catalog note: Gets the current active page
Returns: Int
Public Sub setCurrentPage(i As Int)
Update current page at runtime when this setting changes.
Original catalog note: Sets the current active page, redraws the indicators, and triggers the page change event
Public Sub getCount As Int
Read the current count value for validation or UI synchronization.
Original catalog note: Gets the total number of pages
Returns: Int
Public Sub setCount(c As Int)
Update count at runtime when this setting changes.
Original catalog note: Sets the total number of pages and redraws the indicators
Public Sub setColor(NewColor As Int)
Update color at runtime when this setting changes.
Original catalog note: Dynamically changes the color and redraws the indicators
Public Sub SetIndicatorCharacter(icon As String)
Use SetIndicatorCharacter for its named operation; follow its exact signature.
Original catalog note: Dynamically changes the character used as an indicator
#DesignerProperty: Key: Color, DisplayName: Color, FieldType: Color, DefaultValue: 0xFFFFFFFF#DesignerProperty: Key: Page Count, DisplayName: Page Count, FieldType: Int, DefaultValue: 3#DesignerProperty: Key: Character, DisplayName: Indicator Character, FieldType: Text, DefaultValue: "*"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_PageChanged(Number As Int)
Log("PageChanged")
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 mBase As B4XView ' Main base view