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

The following examples show how to use android.widget.RatingBar#setRating() . 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
public ViewHolder setRating(int viewId, float rating, int max)
{
	RatingBar view = getView(viewId);
	view.setMax(max);
	view.setRating(rating);
	return this;
}
 
Example 2
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 3
public BaseViewHolder setRating(int viewId, float rating, int max) {
    RatingBar view = getView(viewId);
    view.setMax(max);
    view.setRating(rating);
    return this;
}
 
Example 4
public BaseViewHolder setRating(int viewId, float rating) {
    RatingBar view = getView(viewId);
    view.setRating(rating);
    return this;
}
 
Example 5
Source Project: OpenEyes   File: ViewHolder.java    License: Apache License 2.0 4 votes vote down vote up
public ViewHolder setRating(int viewId, float rating)
{
    RatingBar view = getView(viewId);
    view.setRating(rating);
    return this;
}
 
Example 6
Source Project: LLApp   File: RecyclerViewHolder.java    License: Apache License 2.0 4 votes vote down vote up
public RecyclerViewHolder setRating(int viewId, float rating) {
    RatingBar view = getView(viewId);
    view.setRating(rating);
    return this;
}
 
Example 7
public ViewHolder setRating(int viewId, float rating)
{
    RatingBar view = getView(viewId);
    view.setRating(rating);
    return this;
}
 
Example 8
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 9
Source Project: XFrame   File: XViewHolder.java    License: Apache License 2.0 4 votes vote down vote up
public XViewHolder setRating(@IdRes int viewId, float rating, int max) {
    RatingBar view = getView(viewId);
    view.setMax(max);
    view.setRating(rating);
    return this;
}
 
Example 10
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 11
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 12
public RecyclerViewHolder setRating(int viewId, float rating) {
    RatingBar view = findViewById(viewId);
    view.setRating(rating);
    return this;
}
 
Example 13
public RecyclerViewHolder setRating(int viewId, float rating, int max) {
    RatingBar view = findViewById(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: all-base-adapter   File: ViewHolder.java    License: Apache License 2.0 4 votes vote down vote up
public ViewHolder setRating(int viewId, float rating) {
    RatingBar view = getView(viewId);
    view.setRating(rating);
    return this;
}
 
Example 16
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 17
Source Project: imsdk-android   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(@IdRes int viewId, float rating, int max) {
    RatingBar view = getView(viewId);
    view.setMax(max);
    view.setRating(rating);
    return this;
}
 
Example 18
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 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
Source Project: basic-adapter   File: BaseViewHolder.java    License: MIT License 2 votes vote down vote up
/**
 * Sets the rating (the number of stars filled) of a RatingBar.
 *
 * @param viewId The view id.
 * @param rating The rating.
 * @return The BaseViewHolder for chaining.
 */
public BaseViewHolder setRating(int viewId, float rating) {
    RatingBar view = getView(viewId);
    view.setRating(rating);
    return this;
}