Questions tagged [ratingbar]

A RatingBar is an Android widget that shows a rating in stars.

A RatingBar is an extension of SeekBar and ProgressBar that shows a rating in stars. The user can touch/drag or use arrow keys to set the rating when using the default size RatingBar. The smaller RatingBar style (ratingBarStyleSmall) and the larger indicator-only style (ratingBarStyleIndicator) do not support user interaction and should only be used as indicators.

Reference

Android developer reference

434 questions
97
votes
4 answers

android - How to set the Rating bar is non clickable and touchable in HTC mobile

My application have rating bars. I want to set the Rating bar is non-click able and no-touchable. For this i added the following code in xml file of each rating bar. It is working in samsung galaxy Apollo GT-i5801. But it is not working in the HTC…
naresh
  • 9,682
  • 25
  • 77
  • 123
60
votes
14 answers

Android: Change color of ratingbar to golden

I want to change color of rating bar to golden. I dont want to customize the stars, i just want to change the color for API 16 or above I have tried following solutions but none of them worked out for me 1. RatingBar ratingBar = (RatingBar)…
ojas
  • 1,880
  • 5
  • 17
  • 33
35
votes
3 answers

How to allow full values (integers) only in ratingbars?

My client wants a ratingbar in one of the activities, but he doesn't want it to allow half-stars (aka float) values. I've been google-ing around but found nothing about it. Does anybody know if it is possible to force the ratingbar to not allow…
Frank
  • 2,345
  • 5
  • 15
  • 28
31
votes
5 answers

How can I set the color of android rating bar's stroke? (Not the color of the stars but the BORDER)

I am an android beginner and I want to make my custom ratingBar. Disclaimer: it's not a duplicate. because all the posts I have read asks about how to change colors of the star and how to remove the stroke. That is NOT what I want. I want to have…
husky love
  • 313
  • 1
  • 3
  • 4
29
votes
2 answers

How to change the star images of the RatingBar?

With Android SDK 1.1 r1, is there any way to change the RatingBar widget class's star image with my own? Is this possible at all? If so, then how? Thanks.
Chang Chung
  • 2,307
  • 1
  • 17
  • 16
25
votes
1 answer

RatingBar custom Vector Drawables superimposing

RatingBar in android is frustrating. I've followed https://stackoverflow.com/a/13107765 to implement a custom ratingbar with my own drawables, but all the stars just superimpose each other, so that only a single star is finally displayed. I can't,…
Ishaan Garg
  • 2,819
  • 3
  • 22
  • 27
22
votes
4 answers

Android - Custom rating bar looks like its bleeding

So I have created a rating bar with new icons, however, when I implement it, the stars look like they are bleeding, see attached: Here are the style, rating xml, and how they are implemented in the layout: style: