B4X Store

ELEVATEUI · B4A · XUI

UIRatingDialog

Collect a rating from a user in a dedicated dialog.

78 modules 1,780 APIs

Inputs & forms

What it solves

Collect a rating from a user in a dedicated dialog.

Animated conceptual demonstration, not an exact Android control screenshot.

34 methods0 Designer0 events

When to use this module

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.

B4A integration examples

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

Star rating and comment
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)
    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

Public methods reference

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.

act As B4XViewCallback As ObjectEventname As String
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).

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

NewColor 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 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.

img As Bitmap
Public Sub setlogo2(icon As Char, IconColor As Int, Font As B4XFont)

Update logo2 at runtime when this setting changes.

icon As CharIconColor As IntFont As B4XFont
Public Sub setTitle(title As String)

Update title at runtime when this setting changes.

title As String
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.

desc As String
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.

submitText As String
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.

cancelText As String
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.

hint As String
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.

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

img As Bitmap
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.

animate As Boolean
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.

Radius As Float
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.

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

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

IsBubble As Boolean
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.

top As Int
Public Sub setAnimationBubble(animate As Boolean)

Update animation bubble at runtime when this setting changes.

animate As Boolean
Public Sub getAnimateBubble As Boolean

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

Returns: Boolean

Designer · 0

No custom Designer properties were found in the audited API.

Public events and how to implement them · 0

No public callback events are declared in the catalog. You can still handle B4A events for controls inserted inside it.

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