B4X Store

ELEVATEUI · B4A · XUI

UISettingsPage

Create grouped preferences with switches, items and section headers.

78 modules 1,780 APIs

Navigation & onboarding

What it solves

Create grouped preferences with switches, items and section headers.

Animated conceptual demonstration, not an exact Android control screenshot.

33 methods6 Designer3 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

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

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: DesignerCreateView method to initialize B4A UI designer layout properties

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

Parent As B4XViewLeft As IntTop As IntWidth As IntHeight As Int
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"

Style As String
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 ---

Color As Int
Public Sub setCardBackgroundColor(Color As Int)

Update card background color at runtime when this setting changes.

Color As Int
Public Sub setDividerColor(Color As Int)

Update divider color at runtime when this setting changes.

Color As Int
Public Sub setItemTitleColor(Color As Int)

Update item title color at runtime when this setting changes.

Color As Int
Public Sub setItemSubtitleColor(Color As Int)

Update item subtitle color at runtime when this setting changes.

Color As Int
Public Sub setDescriptionColor(Color As Int)

Update description color at runtime when this setting changes.

Color As Int
Public Sub setHeaderTitleColor(Color As Int)

Update header title color at runtime when this setting changes.

Color As Int
Public Sub setHeaderSubtitleColor(Color As Int)

Update header subtitle color at runtime when this setting changes.

Color As Int
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) ---

TitleFont As B4XFontDescriptionFont As B4XFont
Public Sub SetHeaderFonts(TitleFont As B4XFont, DescriptionFont As B4XFont)

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

TitleFont As B4XFontDescriptionFont As B4XFont
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 ---

Title As StringSubtitle As StringAvatarBitmap As B4XBitmapBorderColor As Int
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.

Title As StringSubtitle As StringAvatarInitials As StringAvatarColor As Int
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.

Title As StringUseGradient As BooleanStartColor As IntEndColor As Int
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.

Id As StringIconChar As StringIconFont As B4XFontIconColor As IntIconBgColor As IntTitle As StringSubtitle As String
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.

Id As StringIconChar As StringIconFont As B4XFontIconColor As IntIconBgColor As IntTitle As StringSubtitle As StringChecked As Boolean
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.

Id As StringIconChar As StringIconFont As B4XFontIconColor As IntIconBgColor As IntTitle As StringSubtitle As StringRightText As String
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 ---

Id As StringIconChar As StringIconFont As B4XFontIconColor As IntIconBgColor As IntTitle As StringSubtitle As StringMinValue As IntMaxValue As IntStepValue As IntCurrentValue As Int
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 ---

Id As StringImageFolder As StringImageName As StringTitle As StringSubtitle As StringMinValue As IntMaxValue As IntStepValue As IntCurrentValue As Int
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.

Id As StringImageFolder As StringImageName As StringTitle As StringSubtitle As String
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.

Id As StringImageFolder As StringImageName As StringTitle As StringSubtitle As StringChecked As Boolean
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.

Id As StringImageFolder As StringImageName As StringTitle As StringSubtitle As StringRightText As String
Public Sub AddCustomPanel(Id As String, CustomPanel As B4XView)

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

Id As StringCustomPanel As B4XView
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

ItemId As StringChecked As Boolean
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

ItemId As StringRadius As FloatGlowColor As Int
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.

Id As StringVisible As Boolean
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

Designer · 6

#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.

Public events and how to implement them · 3

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(ItemId 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(ItemId As String)
    Log("ItemClick")
End Sub
SwitchChange(ItemId As String, Checked As Boolean)

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
StepperChange(ItemId As String, Value As Int)

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

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
Source: ElevateUI public API catalog; tutorials cross-checked against ElevateUI(6).b4xlib. Visualizations are illustrative; sample code requires B4A compilation.