B4X Store

ELEVATEUI · B4A · XUI

UITimeline

Show chronological events such as order histories or process milestones.

78 modules 1,780 APIs

Data & organization

What it solves

Show chronological events such as order histories or process milestones.

Animated conceptual demonstration, not an exact Android control screenshot.

18 methods15 Designer2 events

When to use this module

In a management screen, synchronize each change with the backing data and refresh only the affected rows or details.

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

18 audited signatures

Public Sub Initialize(Callback As Object, EventName As String)

Prepare the instance before its other methods.

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.

Base As ObjectLbl As LabelProps As Map
Public Sub CreateTimeline(Parent As B4XView, Left As Int, Top As Int, Width As Int, Height As Int)

Use CreateTimeline for its named operation; follow its exact signature.

Parent As B4XViewLeft As IntTop As IntWidth As IntHeight As Int
Public Sub AddToParent(Parent As B4XView, Left As Int, Top As Int, Width As Int, Height As Int)

Add this view to a parent container using the supplied bounds and options.

Parent As B4XViewLeft As IntTop As IntWidth As IntHeight As Int
Public Sub AddItem(YearOrDate As String, Title As String, Description As String)

Use AddItem for its named operation; follow its exact signature.

YearOrDate As StringTitle As StringDescription As String
Public Sub AddItemWithIcon(YearOrDate As String, Title As String, Description As String, IconChar As String, IconFont As B4XFont, IconColor As Int)

Use AddItemWithIcon for its named operation; follow its exact signature.

YearOrDate As StringTitle As StringDescription As StringIconChar As StringIconFont As B4XFontIconColor As Int
Public Sub AddItemPhase(YearOrDate As String, Title As String, Description As String, NodeColor As Int, IconColor As Int, CardBgColor As Int, TitleColor As Int)

Use AddItemPhase for its named operation; follow its exact signature.

YearOrDate As StringTitle As StringDescription As StringNodeColor As IntIconColor As IntCardBgColor As IntTitleColor As Int
Public Sub AddItemCustom(YearOrDate As String, Title As String, Description As String, IconChar As String, IconFont As B4XFont, IconColor As Int, NodeBgColor As Int, CardBgColor As Int, TitleColor As Int, CardBorderColor As Int)

Use AddItemCustom for its named operation; follow its exact signature.

YearOrDate As StringTitle As StringDescription As StringIconChar As StringIconFont As B4XFontIconColor As IntNodeBgColor As IntCardBgColor As IntTitleColor As IntCardBorderColor As Int
Public Sub getBase As B4XView

Read the current base value for validation or UI synchronization.

Original catalog note: Returns the base container view <code>Returns B4XView</code>

Returns: B4XView

Public Sub ScrollPanel As B4XView

Use ScrollPanel for its named operation; follow its exact signature.

Original catalog note: Returns the inner scroll view panel area <code>Returns B4XView</code>

Returns: B4XView

Public Sub SetPhaseColors(Index As Int, NodeBgColor As Int, NodeIconColor As Int, CardBgColor As Int, TitleColor As Int)

Use SetPhaseColors for its named operation; follow its exact signature.

Index As IntNodeBgColor As IntNodeIconColor As IntCardBgColor As IntTitleColor As Int
Public Sub SetItemStatus(Index As Int, Status As String)

Use SetItemStatus for its named operation; follow its exact signature.

Index As IntStatus As String
Public Sub SetItemState(Index As Int, IsGreenCompleted As Boolean, IsYellowActive As Boolean)

Use SetItemState for its named operation; follow its exact signature.

Index As IntIsGreenCompleted As BooleanIsYellowActive As Boolean
Public Sub SetCurrentStep(StepIndex As Int)

Use SetCurrentStep for its named operation; follow its exact signature.

StepIndex As Int
Public Sub SetCurrentStepWithTimestamp(StepIndex As Int)

Use SetCurrentStepWithTimestamp for its named operation; follow its exact signature.

Original catalog note: Actualiza el timeline estableciendo el paso actual Los pasos COMPLETED mantienen su fecha de finalización (no se sobreescribe) El paso ACTIVE recibe fecha de inicio (solo si no tiene)

StepIndex As Int
Public Sub AdvanceToNextStep

Use AdvanceToNextStep for its named operation; follow its exact signature.

Original catalog note: Avanza al siguiente paso automáticamente

Public Sub Clear

Use Clear for its named operation; follow its exact signature.

Public Sub Render

Use Render for its named operation; follow its exact signature.

Designer · 15

#DesignerProperty: Key: LineStyle, FieldType: String, DefaultValue: SOLID, Description: SOLID or DASHED#DesignerProperty: Key: LineColor, FieldType: Color, DefaultValue: #FF64748B, Description: Default connector line color#DesignerProperty: Key: ActiveLineColor, FieldType: Color, DefaultValue: #FF22C55E, Description: Color for completed segments#DesignerProperty: Key: LineWidth, FieldType: Int, DefaultValue: 2, Description: Width of connector line (dip)#DesignerProperty: Key: NodeSize, FieldType: Int, DefaultValue: 24, Description: Diameter of each circle indicator (dip)#DesignerProperty: Key: ItemSpacing, FieldType: Int, DefaultValue: 80, Description: Vertical space between items (dip)#DesignerProperty: Key: UseStatusColors, FieldType: Boolean, DefaultValue: False, Description: Apply Completed/Active/Pending colors automatically#DesignerProperty: Key: ColorCompleted, FieldType: Color, DefaultValue: #FF22C55E, Description: Circle color for COMPLETED status#DesignerProperty: Key: ColorActive, FieldType: Color, DefaultValue: #FFFDE047, Description: Circle color for ACTIVE status#DesignerProperty: Key: ColorPending, FieldType: Color, DefaultValue: #FF94A3B8, Description: Circle color for PENDING status#DesignerProperty: Key: DefaultNodeColor, FieldType: Color, DefaultValue: #FF334155#DesignerProperty: Key: DefaultNodeIconColor, FieldType: Color, DefaultValue: #FFFFFFFF#DesignerProperty: Key: DefaultCardBgColor, FieldType: Color, DefaultValue: #FFFFFFFF#DesignerProperty: Key: DefaultCardBorderColor, FieldType: Color, DefaultValue: #FFCBD5E1#DesignerProperty: Key: AlternateSides, FieldType: Boolean, DefaultValue: False, Description: Alternate cards left/right

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.

ItemClick(Index As Int, Title As String)

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

B4A handler signature with Demo prefix

Private Sub Demo_ItemClick(Index As Int, Title As String)
    Log("ItemClick")
End Sub
StateChanged(PreviousState As String, NewState As String)

Raised when a selection or value changes; use it to update dependent data.

B4A handler signature with Demo prefix

Private Sub Demo_StateChanged(PreviousState As String, NewState As String)
    Log("StateChanged")
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 Const LINESTYLE_SOLID As String = "SOLID"Public Const LINESTYLE_DASHED As String = "DASHED"Public Const STATUS_COMPLETED As String = "COMPLETED"Public Const STATUS_ACTIVE As String = "ACTIVE"Public Const STATUS_PENDING As String = "PENDING"Public LineStyle As String = "SOLID"Public LineColor As Int = 0xFF64748BPublic ActiveLineColor As Int = 0xFF22C55EPublic LineWidth As Int = 2dipPublic NodeSize As Int = 24dipPublic UseStatusColors As Boolean = FalsePublic ColorCompleted As Int = 0xFF22C55EPublic ColorActive As Int = 0xFFFDE047Public ColorPending As Int = 0xFF94A3B8Public IconCompleted As String = Chr(0xF058)Public IconActive As String = Chr(0xF111)Public IconPending As String = Chr(0xF111)Public IconFontCompleted As B4XFontPublic IconFontActive As B4XFontPublic IconFontPending As B4XFontPublic DefaultNodeColor As Int = 0xFF334155Public DefaultNodeIconColor As Int = 0xFFFFFFFFPublic DefaultCardBgColor As Int = 0xFFFFFFFFPublic DefaultCardBorderColor As Int = 0xFFCBD5E1Public DefaultCardBorderWidth As Int = 1dipPublic DefaultCardCornerRadius As Float = 8dipPublic DefaultTitleColor As Int = 0xFF1E293BPublic DefaultDateColor As Int = 0xFF64748BPublic AlternateSides As Boolean = FalsePublic ItemSpacing As Int = 80dipPublic mBase As B4XViewPublic StepLabelText As String = "Step" ' Cambiar a "Paso" para español
Source: ElevateUI public API catalog; tutorials cross-checked against ElevateUI(6).b4xlib. Visualizations are illustrative; sample code requires B4A compilation.