algorithm used to calculate 5 star ratings
That’s a weighted average, where you weigh each rating with the number of votes it got: (5*252 + 4*124 + 3*40 + 2*29 + 1*33) / (252+124+40+29+33) = 4.11 and change
That’s a weighted average, where you weigh each rating with the number of votes it got: (5*252 + 4*124 + 3*40 + 2*29 + 1*33) / (252+124+40+29+33) = 4.11 and change
The original link I posted is now broken (there’s a good reason why posting links only is not the best way to go). You have to style the RatingBar with either ratingBarStyleSmall or a custom style inheriting from Widget.Material.RatingBar.Small (assuming you’re using Material Design in your app). Option 1: <RatingBar android:id=”@+id/ratingBar” style=”?android:attr/ratingBarStyleSmall” … /> Option … Read more