-6

How to set double value in rating bar, i have search there is no method which works on a double value. I also no there is no chance to convert double to float.

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
Pawan kumar sharma
  • 654
  • 1
  • 7
  • 21

1 Answers1

1

use it String ratedValue = String.valueOf(ratingBar.getRating());

            rateMessage.setText("Rating : " + ratedValue + "/5");