RatingDialog - Customizable rating dialog with real-time updates, automatic dismissal upon releasing the thumb (no OK/Cancel buttons), and SharedPreferences persistence to pre-select the saved rating

RatingDialog
Customizable star-rating dialog (HTML title, icon, message, colors, background, corners, and text size) featuring real-time updates, automatic dismissal upon releasing the thumb (no OK/Cancel buttons), and SharedPreferences persistence to pre-select the saved rating.

Screenrecorder-2026-09-14-04-55-39-955


DialogAppearance

Sets the dialog background color and corner radius.


RatingProperties

Sets the rating bar properties. The defaultRating is only used the first time (before any saved rating exists).


StarColors

Sets the selected and unselected star colors.


Icon

Sets the icon image name. Updates in real time if the dialog is open.


Message

Sets the message text, message color and whether to use HTML in the message.


GetSavedRating

Returns the saved rating for the given id. Returns 0 if no rating has been saved yet.


ClearSavedRating

Clears the saved rating for the given id, so the next time the dialog opens it uses the defaultRating again.


ShowRatingDialog

Displays the rating dialog using the configuration set for the given id. If a rating was previously saved, it will be shown preselected. The dialog closes automatically when the user lifts their finger after selecting a rating.


RatingChanged

Triggered when the user changes the rating while interacting with the RatingBar, including while sliding the finger.


AfterRatingSelected

Triggered after the user selects a rating and lifts their finger. The rating is saved persistently and the dialog closes automatically.


v1.1 September 14, 2026.

  • The parameters for the ShowRatingDialog function were separated into distinct functions.
  • Added an ID to handle multiple rating dialogs.
  • The layoutBackgroundColor, layoutCornerRadius, and buttonColor parameters were removed.
  • The "OK" and "Cancel" buttons were also removed, as the dialog now closes and returns the selected value immediately upon selection.
  • An event was added that triggers for each value as the user slides across the rating.

RatingDialog.aia (112.0 KB)

joejsanz.joedevratingdialog.aix (15.8 KB)


JDK: 17
Minimum API Level: 14
Updated On: 2026-09-14T07:00:00Z

Built using: FAST-CLI v7.0.0-premium


Support free development

  • This extension is and will remain free. If you have found it useful and wish to support my work so I can continue creating and updating components like this one, any voluntary contribution is greatly appreciated:

Donar con PayPal


Thanks.

8 Likes

It's really awesome and useful :ok_hand::clap:

1 Like

Good job @Joejsanz

1 Like

Thank you Jewel.

1 Like

Thank you @devxlabs

It could be improved further.

Ideas are welcome, tell me more.

something like this
or

2 Likes

I'll see what can be done.

1 Like

Ok let see i am also coding for that if i can just testing myself :smile:

1 Like

Very useful extension!
Nico

2 Likes

Thank you nico.

1 Like

Updatev1.1