setRating

open fun setRating(@IdRes id: Int, rating: Float): RatingBar

设置评分 setRating

Return

RatingBar

Parameters

id

视图ID

rating

评分


open fun setRating(@IdRes id: Int, rating: Float, max: Int): RatingBar

设置评分和最大评分值 setRating and setMax

Return

RatingBar

Parameters

id

视图ID

rating

评分

max

最大评分值