Set value in RatingBar
I know this is late but for Kotlin this how you can achieve the same
`val rate=2
rate_bar.rating = rate.toFloat()`
You can use this code:
rate_bar.setRating(Float.parseFloat("2.0"));
or use this:
rate_bar.setRating(0.0f);