Disable rating on RatingBar

The moment you disable the rating bar, you could make an invisble overlay that will display a toast when it's clicked.


As @Br0therzS0ul noted, it's isIndicator.

Here's how in XMl:

android:isIndicator="true"

You could set the rating to isIndicator after the user makes his first change You should prompt the user to make sure his change is exactly as he wished. It can get pretty difficult to rate when the property stepSize (how precise the rating is) is 0.5

//You could prompt the user using a dialog to confirm he is done rating

ratingBar.setIsIndicator(true);

That should leave the UI unchanged(no greyish blur) and prevent the user from making a change (just like setEnabled(false))

In XML Layout

android:isIndicator="true"

Hope it helped

Tags:

Android