Public Sub Initialize(act As B4XView, Callback As Object, Eventname As String)
Prepare the instance before its other methods.
Original catalog note: Initializes the dialog. You can add parameters to this method if needed.
ELEVATEUI · B4A · XUI
Let users choose a color from a dialog instead of hard-coded values.
Dialogs & notifications
Let users choose a color from a dialog instead of hard-coded values.
Animated conceptual demonstration, not an exact Android control screenshot.
When an operation needs confirmation or a result, process its response in the callback before updating the interface.
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.
Review required libraries, Designer views and input data before compiling in B4A.
Sub Activity_Create(FirstTime As Boolean)
Dim dlg As UIColorDialog
dlg.Initialize(Activity, Me, "BrandColor")
dlg.setTitle("Color de la aplicación")
dlg.setDescription("Selecciona un color para el encabezado.")
dlg.setInitialColor(0xFF6554D9)
dlg.setCustomColorText("Color personalizado")
dlg.setSubmitText("Aplicar")
dlg.setCancelText("Volver")
dlg.show
End Sub
Private Sub BrandColor_Submit(SelectedColor As Int)
Log("Color ARGB seleccionado: " & SelectedColor)
' Aplica el color al componente de tu diseño.
End Sub
Private Sub BrandColor_Cancel
Log("Color sin cambios")
End Sub
35 audited signatures
Public Sub Initialize(act As B4XView, Callback As Object, Eventname As String)
Prepare the instance before its other methods.
Original catalog note: Initializes the dialog. You can add parameters to this method if needed.
Public Sub setColorSkin(newColor As Int)
Update color skin at runtime when this setting changes.
Original catalog note: Sets the color for the dialog skin.
Public Sub getColorSkin As Int
Read the current color skin value for validation or UI synchronization.
Original catalog note: Gets the color for the dialog skin.
Returns: Int
Public Sub setLogoImage(img As Bitmap)
Update logo image at runtime when this setting changes.
Original catalog note: Sets the logo image for the dialog.
Public Sub getLogoImage As Bitmap
Read the current logo image value for validation or UI synchronization.
Original catalog note: Gets the logo image for the dialog.
Returns: Bitmap
Public Sub setCustomColorText(text As String)
Update custom color text at runtime when this setting changes.
Original catalog note: Sets the text for the custom color button.
Public Sub setCustomColorTitle(text As String)
Update custom color title at runtime when this setting changes.
Original catalog note: Sets the title shown on the custom color page.
Public Sub setApplyCustomColorText(text As String)
Update apply custom color text at runtime when this setting changes.
Original catalog note: Sets the text for the button that applies the selected custom color.
Public Sub setAnimateImage(animate As Boolean)
Update animate image at runtime when this setting changes.
Original catalog note: Sets whether to animate the logo image.
Public Sub getAnimateImage As Boolean
Read the current animate image value for validation or UI synchronization.
Original catalog note: Gets whether the logo image is animated.
Returns: Boolean
Public Sub setCornerRadius(Radius As Float)
Update corner radius at runtime when this setting changes.
Original catalog note: Sets the corner radius for the dialog.
Public Sub getCornerRadius As Float
Read the current corner radius value for validation or UI synchronization.
Original catalog note: Gets the corner radius for the dialog.
Returns: Float
Public Sub setDialogBackgroundColor(NewColor As Int)
Update dialog background color at runtime when this setting changes.
Original catalog note: Sets the background color of the complete dialog surface or selection panel. Supply an ARGB color (e.g., 0xFF202536).
Public Sub setDialogBorderColor(NewColor As Int)
Update dialog border color at runtime when this setting changes.
Original catalog note: Sets the border color for the complete dialog surface. Supply an ARGB color.
Public Sub setDialogBorderWidth(Width As Float)
Update dialog border width at runtime when this setting changes.
Original catalog note: Sets the border stroke width for the complete dialog surface; zero hides the border.
Public Sub setSubmitButtonColor(Bcolor As Int)
Update submit button color at runtime when this setting changes.
Original catalog note: Sets the color for the submit button.
Public Sub getSubmitButtonColor As Int
Read the current submit button color value for validation or UI synchronization.
Original catalog note: Gets the color for the submit button.
Returns: Int
Public Sub setCancelButtonColor(Bcolor As Int)
Update cancel button color at runtime when this setting changes.
Original catalog note: Sets the color for the cancel button.
Public Sub getCancelButtonColor As Int
Read the current cancel button color value for validation or UI synchronization.
Original catalog note: Gets the color for the cancel button.
Returns: Int
Public Sub setBubbleDesign(IsBubble As Boolean)
Update bubble design at runtime when this setting changes.
Original catalog note: Sets whether to use the bubble design.
Public Sub getBubbleDesign As Boolean
Read the current bubble design value for validation or UI synchronization.
Original catalog note: Gets whether the bubble design is enabled.
Returns: Boolean
Public Sub setTop(top As Int)
Update top at runtime when this setting changes.
Original catalog note: Sets the top margin for the dialog.
Public Sub setlogo2(icon As Char, IconColor As Int, Font As B4XFont)
Update logo2 at runtime when this setting changes.
Original catalog note: Sets the logo character, color, and font.
Public Sub setTitle(title As String)
Update title at runtime when this setting changes.
Original catalog note: Sets the title of the dialog.
Public Sub getTitle As String
Read the current title value for validation or UI synchronization.
Original catalog note: Gets the title of the dialog.
Returns: String
Public Sub setDescription(desc As String)
Update description at runtime when this setting changes.
Original catalog note: Sets the description of the dialog.
Public Sub getDescription As String
Read the current description value for validation or UI synchronization.
Original catalog note: Gets the description of the dialog.
Returns: String
Public Sub setSubmitText(submitText As String)
Update submit text at runtime when this setting changes.
Original catalog note: Sets the text for the submit button.
Public Sub getSubmitText As String
Read the current submit text value for validation or UI synchronization.
Original catalog note: Gets the text for the submit button.
Returns: String
Public Sub setCancelText(cancelText As String)
Update cancel text at runtime when this setting changes.
Original catalog note: Sets the text for the cancel button.
Public Sub getCancelText As String
Read the current cancel text value for validation or UI synchronization.
Original catalog note: Gets the text for the cancel button.
Returns: String
public Sub setAnimationBubble (animate As Boolean)
Public API declaration; refer to the library behavior for usage details.
Original catalog note: Verified against supplied 2026-11-28 .b4xlib
Public Sub getAnimateBubble As Boolean
Read the current animate bubble value for validation or UI synchronization.
Returns: Boolean
Public Sub show
Use show for its named operation; follow its exact signature.
Original catalog note: Shows the dialog.
Public Sub setInitialColor(Icolor As Int)
Update initial color at runtime when this setting changes.
Original catalog note: Sets the initial color for the dialog.
No custom Designer properties were found in the audited API.
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.
Receives the user confirmation; validate parameters before saving.
B4A handler signature with Demo prefix
Private Sub Demo_Submit(color as Int) ' Event triggered when the submit button is clicked.
Log("Submit")
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_Cancel ' Event triggered when the cancel button is clicked.()
Log("Cancel ' Event triggered when the cancel button is clicked.")
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.