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

The following examples show how to use android.widget.RatingBar#setRating() . 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 check out the related API usage on the sidebar.
Example 1
Source File: ViewHolder.java    From Upchain-wallet with GNU Affero General Public License v3.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
Source File: ViewHolder.java    From likequanmintv with 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
Source File: ViewHolder.java    From Bailan with 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 4
Source File: BaseViewHolder.java    From Android-RecyclerViewHelper with Apache License 2.0 4 votes vote down vote up
public BaseViewHolder setRating(int viewId, float rating, int max) {
    RatingBar view = getView(viewId);
    view.setMax(max);
    view.setRating(rating);
    return this;
}
 
Example 5
Source File: ViewHolder.java    From all-base-adapter with 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 File: RecyclerViewHolder.java    From LLApp with 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 7
Source File: RecyclerViewHolder.java    From StickyItemDecoration with Apache License 2.0 4 votes vote down vote up
public RecyclerViewHolder setRating(int viewId, float rating, int max) {
    RatingBar view = findViewById(viewId);
    view.setMax(max);
    view.setRating(rating);
    return this;
}
 
Example 8
Source File: RecyclerViewHolder.java    From StickyItemDecoration with Apache License 2.0 4 votes vote down vote up
public RecyclerViewHolder setRating(int viewId, float rating) {
    RatingBar view = findViewById(viewId);
    view.setRating(rating);
    return this;
}
 
Example 9
Source File: RecyclerViewHolder.java    From Android-BLE with 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 File: ViewHolder.java    From Bailan with 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 File: XViewHolder.java    From XFrame with 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 12
Source File: ViewHolder.java    From all-base-adapter with 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
Source File: ViewHolder.java    From PocketEOS-Android with GNU Lesser General Public License v3.0 4 votes vote down vote up
public ViewHolder setRating(int viewId, float rating)
{
    RatingBar view = getView(viewId);
    view.setRating(rating);
    return this;
}
 
Example 14
Source File: RecyclerViewHolder.java    From LLApp with 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 15
Source File: ViewHolder.java    From OpenEyes with 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 File: BaseViewHolder.java    From Android-RecyclerViewHelper with Apache License 2.0 4 votes vote down vote up
public BaseViewHolder setRating(int viewId, float rating) {
    RatingBar view = getView(viewId);
    view.setRating(rating);
    return this;
}
 
Example 17
Source File: BaseViewHolder.java    From NIM_Android_UIKit with 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 18
Source File: BaseViewHolder.java    From imsdk-android with 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 19
Source File: BaseAdapterHelper.java    From BigApp_WordPress_Android with 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 20
Source File: BaseViewHolder.java    From basic-adapter with 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;
}