setRating

public BaseViewHolder setRating(int viewId, float rating)

Sets the rating of the RatingBar (number of filled stars).

Return

BaseViewHolder for chaining calls.

Parameters

viewId

The ID of the view.

rating

The rating value.


public BaseViewHolder setRating(int viewId, float rating, int max)

Sets the rating and maximum value for the RatingBar.

Return

BaseViewHolder for chaining calls.

Parameters

viewId

The view ID.

rating

The rating value.

max

The range of the RatingBar is 0...max.