Public Sub Initialize(Callback As Object, EventName As String)
Prepare the instance before its other methods.
ELEVATEUI · B4A · XUI
Explain the purpose of controls without crowding the layout.
Dialogs & notifications
Explain the purpose of controls without crowding the layout.
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.
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.
4 audited signatures
Public Sub Initialize(Callback As Object, EventName As String)
Prepare the instance before its other methods.
Public Sub Show(ParentPage As B4XView, TargetView As B4XView, Title As String, Message As String)
Use Show for its named operation; follow its exact signature.
Original catalog note: Shows a tooltip popup anchored to TargetView inside ParentPage
Public Sub ShowWithIcon(ParentPage As B4XView, TargetView As B4XView, Title As String, Message As String, IconBmp As B4XBitmap)
Use ShowWithIcon for its named operation; follow its exact signature.
Original catalog note: Shows a tooltip with a custom icon bitmap
Public Sub Dismiss
Use Dismiss for its named operation; follow its exact signature.
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.
Raised when the user taps the control; use it to trigger a real action.
B4A handler signature with Demo prefix
Private Sub Demo_Clicked()
Log("Clicked")
End Sub
Raised when the component closes; use it to clean up state or restore focus.
B4A handler signature with Demo prefix
Private Sub Demo_Dismissed()
Log("Dismissed")
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 BackgroundColor As Int = 0xFFF8FAFD ' Soft surfacePublic TextColor As Int = 0xFF667488 ' Muted body textPublic TitleColor As Int = 0xFF192B46Public BorderWidth As Int = 1dipPublic CornerRadius As Float = 18dipPublic Placement As String = "TOP" ' "TOP", "BOTTOM", "LEFT", "RIGHT", "AUTO"Public Padding As Int = 12dipPublic AutoDismissMs As Long = 0 ' 0 = manual / click dismissPublic TitleTextSize As Float = 15Public MessageTextSize As Float = 13Public ArrowSize As Int = 8dip