Public Sub Initialize(Callback As Object, EventName As String)
Prepare the instance before its other methods.
Original catalog note: Initializes the settings page builder
ELEVATEUI · B4A · XUI
Create grouped preferences with switches, items and section headers.
Navigation & onboarding
Create grouped preferences with switches, items and section headers.
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.
33 audited signatures
Public Sub Initialize(Callback As Object, EventName As String)
Prepare the instance before its other methods.
Original catalog note: Initializes the settings page builder
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: DesignerCreateView method to initialize B4A UI designer layout properties
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.
Original catalog note: Adds the component to a parent programmatically
Public Sub setLayoutStyle(Style As String)
Update layout style at runtime when this setting changes.
Original catalog note: Set layout style: "grouped" (iOS style), "flat" (Samsung style) or "minimal"
Public Sub getLayoutStyle As String
Read the current layout style value for validation or UI synchronization.
Returns: String
Public Sub setBackgroundColor(Color As Int)
Update background color at runtime when this setting changes.
Original catalog note: --- SETTERS EXPLÍCITOS PARA COLORES POR CÓDIGO ---
Public Sub setCardBackgroundColor(Color As Int)
Update card background color at runtime when this setting changes.
Public Sub setDividerColor(Color As Int)
Update divider color at runtime when this setting changes.
Public Sub setItemTitleColor(Color As Int)
Update item title color at runtime when this setting changes.
Public Sub setItemSubtitleColor(Color As Int)
Update item subtitle color at runtime when this setting changes.
Public Sub setDescriptionColor(Color As Int)
Update description color at runtime when this setting changes.
Public Sub setHeaderTitleColor(Color As Int)
Update header title color at runtime when this setting changes.
Public Sub setHeaderSubtitleColor(Color As Int)
Update header subtitle color at runtime when this setting changes.
Public Sub SetItemFonts(TitleFont As B4XFont, DescriptionFont As B4XFont)
Use SetItemFonts for its named operation; follow its exact signature.
Original catalog note: --- MÉTODOS PÚBLICOS PARA CONFIGURAR TIPOGRAFÍAS (FONTS) ---
Public Sub SetHeaderFonts(TitleFont As B4XFont, DescriptionFont As B4XFont)
Use SetHeaderFonts for its named operation; follow its exact signature.
Public Sub AddHeaderWithBitmap(Title As String, Subtitle As String, AvatarBitmap As B4XBitmap, BorderColor As Int)
Use AddHeaderWithBitmap for its named operation; follow its exact signature.
Original catalog note: --- CABECERAS ---
Public Sub AddHeader(Title As String, Subtitle As String, AvatarInitials As String, AvatarColor As Int)
Use AddHeader for its named operation; follow its exact signature.
Public Sub StartSection(Title As String, UseGradient As Boolean, StartColor As Int, EndColor As Int)
Use StartSection for its named operation; follow its exact signature.
Original catalog note: Starts a new settings section/group.
Public Sub AddItemIcon(Id As String, IconChar As String, IconFont As B4XFont, IconColor As Int, IconBgColor As Int, Title As String, Subtitle As String)
Use AddItemIcon for its named operation; follow its exact signature.
Public Sub AddSwitchItemIcon(Id As String, IconChar As String, IconFont As B4XFont, IconColor As Int, IconBgColor As Int, Title As String, Subtitle As String, Checked As Boolean)
Use AddSwitchItemIcon for its named operation; follow its exact signature.
Public Sub AddInfoItemIcon(Id As String, IconChar As String, IconFont As B4XFont, IconColor As Int, IconBgColor As Int, Title As String, Subtitle As String, RightText As String)
Use AddInfoItemIcon for its named operation; follow its exact signature.
Public Sub AddStepperItemIcon(Id As String, IconChar As String, IconFont As B4XFont, IconColor As Int, IconBgColor As Int, Title As String, Subtitle As String, MinValue As Int, MaxValue As Int, StepValue As Int, CurrentValue As Int)
Use AddStepperItemIcon for its named operation; follow its exact signature.
Original catalog note: --- ÍTEM: STEPPER CON ICONO ---
Public Sub AddStepperItemImage(Id As String, ImageFolder As String, ImageName As String, Title As String, Subtitle As String, MinValue As Int, MaxValue As Int, StepValue As Int, CurrentValue As Int)
Use AddStepperItemImage for its named operation; follow its exact signature.
Original catalog note: --- ÍTEM: STEPPER CON IMAGEN ---
Public Sub AddItemImage(Id As String, ImageFolder As String, ImageName As String, Title As String, Subtitle As String)
Use AddItemImage for its named operation; follow its exact signature.
Public Sub AddSwitchItemImage(Id As String, ImageFolder As String, ImageName As String, Title As String, Subtitle As String, Checked As Boolean)
Use AddSwitchItemImage for its named operation; follow its exact signature.
Public Sub AddInfoItemImage(Id As String, ImageFolder As String, ImageName As String, Title As String, Subtitle As String, RightText As String)
Use AddInfoItemImage for its named operation; follow its exact signature.
Public Sub AddCustomPanel(Id As String, CustomPanel As B4XView)
Use AddCustomPanel for its named operation; follow its exact signature.
Public Sub EndSection
Use EndSection for its named operation; follow its exact signature.
Original catalog note: Closes the current section card.
Public Sub SetSwitchChecked(ItemId As String, Checked As Boolean)
Use SetSwitchChecked for its named operation; follow its exact signature.
Original catalog note: API: Programmatically toggle a switch setting
Public Sub getListView As CustomListView
Read the current list view value for validation or UI synchronization.
Original catalog note: API: Retrieve CustomListView container
Returns: CustomListView
Public Sub SetIconGlow(ItemId As String, Radius As Float, GlowColor As Int)
Use SetIconGlow for its named operation; follow its exact signature.
Original catalog note: API: Applies a glowing shadow effect to the left icon of the row with the given ItemId
Public Sub SetItemVisible(Id As String, Visible As Boolean)
Use SetItemVisible for its named operation; follow its exact signature.
Original catalog note: API: Muestra u oculta elementos o paneles (tarjetas/secciones completas) dinámicamente.
Public Sub Clear
Use Clear for its named operation; follow its exact signature.
Original catalog note: Clears all items, sections, and resets internal tracking maps
#DesignerProperty: Key: LayoutStyle, DisplayName: Layout Style, FieldType: String, DefaultValue: Grouped, List: Grouped|Flat|Minimal, Description: Estilo visual de la página de ajustes.#DesignerProperty: Key: BackgroundColor, DisplayName: Background Color, FieldType: Color, DefaultValue: 0xFFF5F7FA, Description: Color de fondo exterior de toda la pantalla.#DesignerProperty: Key: CardBackgroundColor, DisplayName: Card Background Color, FieldType: Color, DefaultValue: 0xFFFFFFFF, Description: Color de fondo de las tarjetas (agrupaciones).#DesignerProperty: Key: DividerColor, DisplayName: Divider Color, FieldType: Color, DefaultValue: 0xFFE5E9F0, Description: Color de las líneas finas que separan las opciones.#DesignerProperty: Key: ItemTitleColor, DisplayName: Item Title Color, FieldType: Color, DefaultValue: 0xFF1F2937, Description: Color del texto principal de cada opción (Ej: "Modo Oscuro").#DesignerProperty: Key: ItemSubtitleColor, DisplayName: Item Subtitle Color, FieldType: Color, DefaultValue: 0xFF6B7280, Description: Color del texto secundario de cada opción.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 the user taps the control; use it to trigger a real action.
B4A handler signature with Demo prefix
Private Sub Demo_ItemClick(ItemId As String)
Log("ItemClick")
End Sub
Raised when a selection or value changes; use it to update dependent data.
B4A handler signature with Demo prefix
Private Sub Demo_SwitchChange(ItemId As String, Checked As Boolean)
Log("SwitchChange")
End Sub
Raised when a selection or value changes; use it to update dependent data.
B4A handler signature with Demo prefix
Private Sub Demo_StepperChange(ItemId As String, Value As Int)
Log("StepperChange")
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 Const STYLE_GROUPED As String = "grouped"Public Const STYLE_FLAT As String = "flat"Public Const STYLE_MINIMAL As String = "minimal"Public SectionTitleColor As Int = 0xFF35B998Public HeaderTitleColor As Int = 0xFF1F2937Public HeaderSubtitleColor As Int = 0xFF6B7280Public SwitchOnColor As Int = 0xFF35B998Public SwitchOffColor As Int = 0xFFC8C8C8