Public Sub Initialize(act As B4XView, Callback As Object, Eventname As String)
Prepare the instance before its other methods.
Original catalog note: Initialize: Initializes the dialog with the parent activity, callback object, and event name.
ELEVATEUI · B4A · XUI
Collect a rating from a user in a dedicated dialog.
Inputs & forms
Collect a rating from a user in a dedicated dialog.
Animated conceptual demonstration, not an exact Android control screenshot.
In a data-entry form, connect the chosen value to validation and the action that submits the form.
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 UIRatingDialog
dlg.Initialize(Activity, Me, "Feedback")
dlg.setTitle("¿Cómo fue tu experiencia?")
dlg.setDescription("Tu opinión nos ayuda a mejorar.")
dlg.setHintText("Comentario opcional")
dlg.setSubmitText("Enviar")
dlg.setCancelText("Después")
dlg.setAnimationBubble(True)
dlg.Show
End Sub
Private Sub Feedback_Submit(Stars As Int, Comment As String)
Log("Puntuación: " & Stars)
Log("Comentario: " & Comment)
End Sub
Private Sub Feedback_Cancel
Log("El usuario omitió la valoración")
End Sub
34 audited signatures
Public Sub Initialize(act As B4XView, Callback As Object, Eventname As String)
Prepare the instance before its other methods.
Original catalog note: Initialize: Initializes the dialog with the parent activity, callback object, and event name.
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 Show
Use Show for its named operation; follow its exact signature.
Original catalog note: Show: Displays the dialog with all its components.
Public Sub setImagelogo(img As Bitmap)
Update imagelogo at runtime when this setting changes.
Public Sub setlogo2(icon As Char, IconColor As Int, Font As B4XFont)
Update logo2 at runtime when this setting changes.
Public Sub setTitle(title As String)
Update title at runtime when this setting changes.
Public Sub getTitle As String
Read the current title value for validation or UI synchronization.
Returns: String
Public Sub setDescription(desc As String)
Update description at runtime when this setting changes.
Public Sub getDescription As String
Read the current description value for validation or UI synchronization.
Returns: String
Public Sub setSubmitText(submitText As String)
Update submit text at runtime when this setting changes.
Public Sub getSubmitText As String
Read the current submit text value for validation or UI synchronization.
Returns: String
Public Sub setCancelText(cancelText As String)
Update cancel text at runtime when this setting changes.
Public Sub getCancelText As String
Read the current cancel text value for validation or UI synchronization.
Returns: String
Public Sub setHintText(hint As String)
Update hint text at runtime when this setting changes.
Public Sub getHintText As String
Read the current hint text value for validation or UI synchronization.
Returns: String
Public Sub setColorSkin(newColor As Int)
Update color skin at runtime when this setting changes.
Public Sub getColorSkin As Int
Read the current color skin value for validation or UI synchronization.
Returns: Int
Public Sub setLogoImage(img As Bitmap)
Update logo image at runtime when this setting changes.
Public Sub getLogoImage As Bitmap
Read the current logo image value for validation or UI synchronization.
Returns: Bitmap
Public Sub setAnimateImage(animate As Boolean)
Update animate image at runtime when this setting changes.
Public Sub getAnimateImage As Boolean
Read the current animate image value for validation or UI synchronization.
Returns: Boolean
Public Sub setCornerRadius(Radius As Float)
Update corner radius at runtime when this setting changes.
Public Sub getCornerRadius As Float
Read the current corner radius value for validation or UI synchronization.
Returns: Float
Public Sub setSubmitButtonColor(Bcolor As Int)
Update submit button color at runtime when this setting changes.
Public Sub getSubmitButtonColor As Int
Read the current submit button color value for validation or UI synchronization.
Returns: Int
Public Sub setCancelButtonColor(Bcolor As Int)
Update cancel button color at runtime when this setting changes.
Public Sub getCancelButtonColor As Int
Read the current cancel button color value for validation or UI synchronization.
Returns: Int
Public Sub setBubbleDesign(IsBubble As Boolean)
Update bubble design at runtime when this setting changes.
Public Sub getBubbleDesign As Boolean
Read the current bubble design value for validation or UI synchronization.
Returns: Boolean
Public Sub setTop(top As Int)
Update top at runtime when this setting changes.
Public Sub setAnimationBubble(animate As Boolean)
Update animation bubble at runtime when this setting changes.
Public Sub getAnimateBubble As Boolean
Read the current animate bubble value for validation or UI synchronization.
Returns: Boolean
No custom Designer properties were found in the audited API.
No public callback events are declared in the catalog. You can still handle B4A events for controls inserted inside it.