B4X Store

ELEVATEUI · B4A · XUI

B4XPageIndicator

Show which onboarding or carousel page is active. Pair with a screen slider.

78 modules 1,780 APIs

Navigation & onboarding

What it solves

Show which onboarding or carousel page is active. Pair with a screen slider.

Animated conceptual demonstration, not an exact Android control screenshot.

8 methods3 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

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

Callback As ObjectEventName As String
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.

Base As ObjectLbl As LabelProps As Map
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

i As Int
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

c As Int
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

NewColor As Int
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

icon As String

Designer · 3

#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: "*"

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.

PageChanged(Number As Int)

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 fields, constants and types

Public mBase As B4XView ' Main base view
Source: ElevateUI public API catalog; tutorials cross-checked against ElevateUI(6).b4xlib. Visualizations are illustrative; sample code requires B4A compilation.