Java Code Examples for android.widget.RatingBar#setMax()

The following examples show how to use android.widget.RatingBar#setMax() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may want to check out the right sidebar which shows the related API usage.
Example 1
Source Project: baseAdapter   File: ViewHolder.java    License: Apache License 2.0 5 votes vote down vote up
public ViewHolder setRating(int viewId, float rating, int max)
{
    RatingBar view = getView(viewId);
    view.setMax(max);
    view.setRating(rating);
    return this;
}
 
Example 2
@NonNull
@Override
public ViewFinder setRating(final int ID, final float rating, final int max) {
	final RatingBar ratingBar = find(ID);
	ratingBar.setRating(rating);
	ratingBar.setMax(max);
	return this;
}
 
Example 3
Source Project: likequanmintv   File: ViewHolder.java    License: Apache License 2.0 5 votes vote down vote up
public ViewHolder setRating(int viewId, float rating, int max)
{
    RatingBar view = getView(viewId);
    view.setMax(max);
    view.setRating(rating);
    return this;
}
 
Example 4
@Override
public MartianViewHolder setRating(int viewId, float rating, int max) {
    RatingBar view = getView(viewId);
    view.setMax(max);
    view.setRating(rating);
    return this;
}
 
Example 5
public ItemViewHelper setRating(int viewId, float rating, int max) {
    RatingBar view = this.getView(viewId);
    view.setMax(max);
    view.setRating(rating);
    return this;
}
 
Example 6
Source Project: youqu_master   File: ViewHolderHelper.java    License: Apache License 2.0 4 votes vote down vote up
public ViewHolderHelper setRating(int viewId, float rating, int max) {
    RatingBar view = getView(viewId);
    view.setMax(max);
    view.setRating(rating);
    return this;
}
 
Example 7
Source Project: all-base-adapter   File: ViewHolder.java    License: Apache License 2.0 4 votes vote down vote up
public ViewHolder setRating(int viewId, float rating, int max) {
    RatingBar view = getView(viewId);
    view.setMax(max);
    view.setRating(rating);
    return this;
}
 
Example 8
Source Project: Bailan   File: ViewHolder.java    License: Apache License 2.0 4 votes vote down vote up
public ViewHolder setRating(int viewId, float rating, int max) {
    RatingBar view = getView(viewId);
    view.setMax(max);
    view.setRating(rating);
    return this;
}
 
Example 9
Source Project: Android-BLE   File: RecyclerViewHolder.java    License: Apache License 2.0 4 votes vote down vote up
public RecyclerViewHolder setRating(int viewId, float rating, int max) {
    RatingBar view = getView(viewId);
    view.setMax(max);
    view.setRating(rating);
    return this;
}
 
Example 10
Source Project: Girls   File: ViewHolder.java    License: Apache License 2.0 4 votes vote down vote up
public ViewHolder setRating(int viewId, float rating, int max) {
    RatingBar view = getView(viewId);
    view.setMax(max);
    view.setRating(rating);
    return this;
}
 
Example 11
Source Project: commonadapter   File: ViewHolderImpl.java    License: MIT License 4 votes vote down vote up
public void setRating(int viewId, float rating, int max) {
    RatingBar view = findViewById(viewId);
    view.setMax(max);
    view.setRating(rating);
}
 
Example 12
Source Project: Bailan   File: ViewHolder.java    License: Apache License 2.0 4 votes vote down vote up
public ViewHolder setRating(int viewId, float rating, int max) {
    RatingBar view = getView(viewId);
    view.setMax(max);
    view.setRating(rating);
    return this;
}
 
Example 13
public BaseViewHolder setRating(int viewId, float rating, int max) {
    RatingBar view = getView(viewId);
    view.setMax(max);
    view.setRating(rating);
    return this;
}
 
Example 14
Source Project: LLApp   File: RecyclerViewHolder.java    License: Apache License 2.0 4 votes vote down vote up
public RecyclerViewHolder setRating(int viewId, float rating, int max) {
    RatingBar view = getView(viewId);
    view.setMax(max);
    view.setRating(rating);
    return this;
}
 
Example 15
Source Project: NIM_Android_UIKit   File: BaseViewHolder.java    License: MIT License 3 votes vote down vote up
/**
 * 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.
 */
public BaseViewHolder setRating(int viewId, float rating, int max) {
    RatingBar view = getView(viewId);
    view.setMax(max);
    view.setRating(rating);
    return this;
}
 
Example 16
Source Project: basic-adapter   File: BaseViewHolder.java    License: MIT License 3 votes vote down vote up
/**
 * 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.
 */
public BaseViewHolder setRating(int viewId, float rating, int max) {
    RatingBar view = getView(viewId);
    view.setMax(max);
    view.setRating(rating);
    return this;
}
 
Example 17
Source Project: CommonAdapter   File: BaseAdapterHelper.java    License: MIT License 3 votes vote down vote up
/**
 * 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 BaseAdapterHelper for chaining.
 */
public BaseAdapterHelper setRating(@IdRes int viewId, float rating, int max) {
    RatingBar view = retrieveView(viewId);
    view.setMax(max);
    view.setRating(rating);
    return this;
}
 
Example 18
Source Project: AndroidBase   File: BaseAdapterHelper.java    License: Apache License 2.0 3 votes vote down vote up
/**
 * 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 BaseAdapterHelper for chaining.
 */
public BaseAdapterHelper setRating(int viewId, float rating, int max) {
    RatingBar view = retrieveView(viewId);
    view.setMax(max);
    view.setRating(rating);
    return this;
}
 
Example 19
/**
 * 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 BaseAdapterHelper for chaining.
 */
public BaseAdapterHelper setRating(int viewId, float rating, int max) {
    RatingBar view = retrieveView(viewId);
    view.setMax(max);
    view.setRating(rating);
    return this;
}
 
Example 20
/**
 * 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 BaseAdapterHelper for chaining.
 */
public BaseAdapterHelper setRating(int viewId, float rating, int max) {
    RatingBar view = retrieveView(viewId);
    view.setMax(max);
    view.setRating(rating);
    return this;
}