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.
ELEVATEUI · B4A · XUI
Ask for confirmation or show modal content requiring user attention.
Dialogs & notifications
Ask for confirmation or show modal content requiring user attention.
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)
' 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
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.
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
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
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
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
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
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
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
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
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
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).
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.
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 setButtonColor(Bcolor As Int)
Update button color at runtime when this setting changes.
Original catalog note: Sets the button color
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 setAnimationBubble(animate As Boolean)
Update animation bubble at runtime when this setting changes.
Original catalog note: Sets whether bubble animation is enabled
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
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 ' 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.