Public Sub Initialize (Callback As Object, EventName As String)
Prepare the instance before its other methods.
ELEVATEUI · B4A · XUI
Show score or state as a gauge-oriented percentage indicator.
Progress & measurement
Show score or state as a gauge-oriented percentage indicator.
Animated conceptual demonstration, not an exact Android control screenshot.
During a long operation, connect this indicator to real progress updates rather than leaving a decorative percentage.
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.
26 audited signatures
Public Sub Initialize (Callback As Object, EventName As String)
Prepare the instance before its other methods.
Public Sub DesignerCreateView (Base As Object, Lbl As Label, Props As Map)
Invoked automatically by the B4A Visual Designer; do not call manually.
Public Sub AddToParent(Parent As B4XView, l As Int, t As Int, w As Int, h As Int, ColorIndicator As Int)
Add this view to a parent container using the supplied bounds and options.
Public Sub setCurrentValue (v As Float)
Update current value at runtime when this setting changes.
Public Sub getCurrentValue As Float
Read the current current value value for validation or UI synchronization.
Returns: Float
Public Sub SaveAsPNG(Dir As String, FileName As String) As Boolean
Use SaveAsPNG for its named operation; follow its exact signature.
Returns: Boolean
Public Sub setWidthStroke(Width As Int)
Update width stroke at runtime when this setting changes.
Original catalog note: Establecer el ancho del trazo
Public Sub getWidthStroke As Int
Read the current width stroke value for validation or UI synchronization.
Returns: Int
Public Sub setValueMin(Value As Float)
Update value min at runtime when this setting changes.
Original catalog note: Establecer el valor mÃnimo
Public Sub getValueMin As Float
Read the current value min value for validation or UI synchronization.
Returns: Float
Public Sub setValueMax(Value As Float)
Update value max at runtime when this setting changes.
Original catalog note: Establecer el valor máximo
Public Sub getValueMax As Float
Read the current value max value for validation or UI synchronization.
Returns: Float
Public Sub setLengthIndicator(Length As Int)
Update length indicator at runtime when this setting changes.
Original catalog note: Establecer la longitud del indicador
Public Sub getLengthIndicator As Int
Read the current length indicator value for validation or UI synchronization.
Returns: Int
Public Sub setColorIndicator(Color As Int)
Update color indicator at runtime when this setting changes.
Original catalog note: Establecer el color del indicador
Public Sub getColorIndicator As Int
Read the current color indicator value for validation or UI synchronization.
Returns: Int
Public Sub setAnimationDuration(Duration As Int)
Update animation duration at runtime when this setting changes.
Original catalog note: Establecer la duración de la animación
Public Sub getAnimationDuration As Int
Read the current animation duration value for validation or UI synchronization.
Returns: Int
Public Sub setTypeGauge(TypeGauge As String)
Update type gauge at runtime when this setting changes.
Original catalog note: Establecer el tipo de gauge
Public Sub getGaugeType As String
Read the current gauge type value for validation or UI synchronization.
Returns: String
Public Sub setTitle(Text As String)
Update title at runtime when this setting changes.
Original catalog note: Métodos públicos para gestionar el tÃtulo, color y tamaño de fuente
Public Sub getTitle As String
Read the current title value for validation or UI synchronization.
Returns: String
Public Sub setTitleColor(Color As Int)
Update title color at runtime when this setting changes.
Public Sub getTitleColor As Int
Read the current title color value for validation or UI synchronization.
Returns: Int
Public Sub setTitleFontSize(Size As Int)
Update title font size at runtime when this setting changes.
Public Sub getTitleFontSize As Int
Read the current title font size value for validation or UI synchronization.
Returns: Int
#DesignerProperty: Key: MinValue, DisplayName: Min Value, FieldType: Float, DefaultValue: 0#DesignerProperty: Key: MaxValue, DisplayName: Max Value, FieldType: Float, DefaultValue: 100#DesignerProperty: Key: IndicatorLength, DisplayName: Indicator Length, FieldType: Int, DefaultValue: 20#DesignerProperty: Key: IndicatorColor, DisplayName: Indicator Color, FieldType: Color, DefaultValue: 0xFFFF5555#DesignerProperty: Key: StrokeWidth, DisplayName: Stroke Width, FieldType: Int, DefaultValue: 10#DesignerProperty: Key: Duration, DisplayName: Duration From 0 To 100, FieldType: Int, DefaultValue: 3000, Description: Milliseconds#DesignerProperty: Key: GaugeType, DisplayName: Gauge Type, FieldType: String, DefaultValue: Half Circle, List:Half Circle|Full Circle#DesignerProperty: Key: Title, DisplayName: Title, FieldType: String, DefaultValue: Gauge#DesignerProperty: Key: TitleColor, DisplayName: Title Color, FieldType: Color, DefaultValue: 0xFF000000#DesignerProperty: Key: TitleFontSize, DisplayName: Title Font Size, FieldType: Int, DefaultValue: 16, Description: Size in dipInitialize 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_ValueChanged(NewValue As Float)
Log("ValueChanged")
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_Click()
Log("Click")
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 B4XViewPublic Tag As Object