You can get each rating value using RatingBar.getRating()
, sum all the values and divide it by the number of rating bars.
RatingBar ratingBar = (RatingBar) findViewById(R.id.ratingBar1);
RatingBar ratingBar1 = (RatingBar) findViewById(R.id.ratingBar2);
float total = 0;
total += ratingBar.getRating();
total += ratingBar1.getRating();
float average = total / 2;
Is this what you want? Please comment to avoid misunderstanding. Thank you.