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.
Asked
Active
Viewed 483 times
-6
-
double to float https://stackoverflow.com/questions/32837783/convert-double-to-float-in-java – Rohit5k2 Jun 18 '18 at 09:33
-
@Rohit5k2 I tried your suggestion but not works for me. – Pawan kumar sharma Jun 19 '18 at 06:40
1 Answers
1
use it String ratedValue = String.valueOf(ratingBar.getRating());
rateMessage.setText("Rating : " + ratedValue + "/5");

vijay maddhesiya
- 48
- 1
- 9