how to read and display rating bar value
i[0] // should be selected value
private OnClickListener onclickbutton1 = new OnClickListener() {
public void onCli
var ratingBar = findViewById(R.id.ratingBarid);
var text1 = findViewById(R.id.textViewid)
// rating bar click to show the text view
ratingBar.setOnRatingBarChangeListener(object: RatingBar.OnRatingBarChangeListener{
override fun onRatingChanged(ratingBar: RatingBar?, rating: Float, fromUser: Boolean) {
// TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
text1.text = "Rating bar result $rating"
}
})