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

The following examples show how to use android.widget.RatingBar#setMax() . 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 baseAdapter 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 2
Source File: ViewFinderImpl.java    From RendererRecyclerViewAdapter with Apache License 2.0 5 votes vote down vote up
@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 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 4
Source File: MartianViewHolder.java    From RxJava2RetrofitDemo with Apache License 2.0 5 votes vote down vote up
@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 File: ViewHolderHelper.java    From youqu_master with 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 6
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 7
Source File: ItemViewHelper.java    From JianshuApp with GNU General Public License v3.0 4 votes vote down vote up
public ItemViewHelper setRating(int viewId, float rating, int max) {
    RatingBar view = this.getView(viewId);
    view.setMax(max);
    view.setRating(rating);
    return this;
}
 
Example 8
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 9
Source File: BaseViewHolder.java    From Android-Architecture 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 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: 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 12
Source File: ViewHolder.java    From Girls 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: ViewHolderImpl.java    From commonadapter with 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 14
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 15
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 16
Source File: BaseAdapterHelper.java    From base-adapter-helper-recyclerview 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 17
Source File: BaseAdapterHelper.java    From AndroidBase 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 18
Source File: BaseAdapterHelper.java    From CommonAdapter 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 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 19
Source File: BaseViewHolder.java    From basic-adapter 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 20
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;
}