B4X Store

ELEVATEUI · B4A · XUI

UIDialog

Ask for confirmation or show modal content requiring user attention.

78 modules 1,780 APIs

Dialogs & notifications

What it solves

Ask for confirmation or show modal content requiring user attention.

Animated conceptual demonstration, not an exact Android control screenshot.

26 methods0 Designer1 events

When to use this module

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.

B4A integration examples

Tutorials are based on existing project examples or audited APIs. Check each example’s prerequisites; B4A compilation is not claimed.

Single-action information dialog
Existing documentation example dialogs-registry.json Not B4A-compiled

Review required libraries, Designer views and input data before compiling in B4A.

Sub Activity_Create(FirstTime As Boolean)
    ' Activity_Create: después de cargar el layout
    Dim xui As XUI
    Dim dlg As UIDialog
    dlg.Initialize(Activity, Me, "Info")
    dlg.setTitle("Operación completada")
    dlg.setDescription("Los cambios se guardaron correctamente.")
    dlg.setButtonText("Entendido")
    dlg.setColorSkin(xui.Color_White)
    dlg.setButtonColor(0xFF6554D9)
    dlg.setBubbleDesign(True)
    dlg.setAnimationBubble(True)
    dlg.show

    ' En el módulo de la Activity:
End Sub

Private Sub Info_Submit
    Log("El usuario cerró el aviso")
End Sub

Public methods reference

26 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 object.

act As B4XViewCallback As ObjectEventName As String
Public Sub setBubbleDesign(IsBubble As Boolean)

Update bubble design at runtime when this setting changes.

Original catalog note: Sets whether the bubble design is enabled

IsBubble As Boolean
Public Sub getBubbleDesign As Boolean

Read the current bubble design value for validation or UI synchronization.

Original catalog note: Returns whether the bubble design is enabled

Returns: Boolean

Public Sub setDescription(desc As String)

Update description at runtime when this setting changes.

Original catalog note: Sets the description text

desc As String
Public Sub getDescription As String

Read the current description value for validation or UI synchronization.

Original catalog note: Returns the description text

Returns: String

Public Sub setButtonText(text As String)

Update button text at runtime when this setting changes.

Original catalog note: Sets the button text

text As String
Public Sub getButtonText As String

Read the current button text value for validation or UI synchronization.

Original catalog note: Returns the button text

Returns: String

Public Sub setTitle(title As String)

Update title at runtime when this setting changes.

Original catalog note: Sets the title text

title As String
Public Sub getTitle As String

Read the current title value for validation or UI synchronization.

Original catalog note: Returns the title text

Returns: String

Public Sub setImagelogo(img As Bitmap)

Update imagelogo at runtime when this setting changes.

Original catalog note: Sets the image logo

img As Bitmap
Public Sub getLogo As Bitmap

Read the current logo value for validation or UI synchronization.

Original catalog note: Returns the image logo

Returns: Bitmap

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 with a character, color, and font

icon As CharIconColor As IntFont As B4XFont
Public Sub setColorSkin(color As Int)

Update color skin at runtime when this setting changes.

Original catalog note: Sets the skin color for the UI

color As Int
Public Sub getColorSkin As Int

Read the current color skin value for validation or UI synchronization.

Original catalog note: Returns the skin color

Returns: Int

Public Sub setAnimateImage(animate As Boolean)

Update animate image at runtime when this setting changes.

Original catalog note: Sets whether image animation is enabled

animate As Boolean
Public Sub getAnimateImage As Boolean

Read the current animate image value for validation or UI synchronization.

Original catalog note: Returns whether image animation is enabled

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

Radius As Float
Public Sub getCornerRadius As Float

Read the current corner radius value for validation or UI synchronization.

Original catalog note: Returns the corner radius

Returns: Float

Public Sub setDialogBackgroundColor(Color 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).

Color As Int
Public Sub setDialogBorderColor(Color 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.

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

Width As Float
Public Sub setButtonColor(Bcolor As Int)

Update button color at runtime when this setting changes.

Original catalog note: Sets the button color

Bcolor As Int
Public Sub setTop(top As Int)

Update top at runtime when this setting changes.

Original catalog note: Sets the top margin for the dialog

top As Int
Public Sub setAnimationBubble(animate As Boolean)

Update animation bubble at runtime when this setting changes.

Original catalog note: Sets whether bubble animation is enabled

animate As Boolean
Public Sub getAnimateBubble As Boolean

Read the current animate bubble value for validation or UI synchronization.

Original catalog note: Returns whether bubble animation is enabled

Returns: Boolean

Public Sub show

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

Original catalog note: Displays the custom dialog

Designer · 0

No custom Designer properties were found in the audited API.

Public events and how to implement them · 1

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.

Submit ' Event for submit action

Receives the user confirmation; validate parameters before saving.

B4A handler signature with Demo prefix

Private Sub Demo_Submit ' Event for submit action()
    Log("Submit ' Event for submit action")
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.

Source: ElevateUI public API catalog; tutorials cross-checked against ElevateUI(6).b4xlib. Visualizations are illustrative; sample code requires B4A compilation.