public BaseViewHolder setRating(int viewId, float rating, int max) {
        RatingBar view = getView(viewId);
        view.setMax(max);
        view.setRating(rating);
        return this;
    }
Sets the rating (the number of stars filled) and max of a RatingBar.

@param viewId The view id.
@param rating The rating.
@param max    The range of the RatingBar to 0...max.
@return The BaseViewHolder for chaining.
common/src/main/java/com/sxjs/common/base/baseadapter/BaseViewHolder.java