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 check out the related API usage on the sidebar.
Example 1
Source Project: baseAdapter File: ViewHolder.java License: Apache License 2.0 | 5 votes |
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: RendererRecyclerViewAdapter File: ViewFinderImpl.java License: Apache License 2.0 | 5 votes |
@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 |
public ViewHolder setRating(int viewId, float rating, int max) { RatingBar view = getView(viewId); view.setMax(max); view.setRating(rating); return this; }
Example 4
Source Project: RxJava2RetrofitDemo File: MartianViewHolder.java License: Apache License 2.0 | 5 votes |
@Override public MartianViewHolder setRating(int viewId, float rating, int max) { RatingBar view = getView(viewId); view.setMax(max); view.setRating(rating); return this; }
Example 5
Source Project: JianshuApp File: ItemViewHelper.java License: GNU General Public License v3.0 | 4 votes |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
public ViewHolder setRating(int viewId, float rating, int max) { RatingBar view = getView(viewId); view.setMax(max); view.setRating(rating); return this; }
Example 13
Source Project: Android-Architecture File: BaseViewHolder.java License: Apache License 2.0 | 4 votes |
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 |
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 |
/** * 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 |
/** * 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 |
/** * 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 |
/** * 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
Source Project: base-adapter-helper-recyclerview File: BaseAdapterHelper.java License: Apache License 2.0 | 3 votes |
/** * 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: BigApp_WordPress_Android File: BaseAdapterHelper.java License: Apache License 2.0 | 3 votes |
/** * 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; }