当前位置: 首页>>代码示例>>Java>>正文


Java RatingBar.setMax方法代码示例

本文整理汇总了Java中android.widget.RatingBar.setMax方法的典型用法代码示例。如果您正苦于以下问题:Java RatingBar.setMax方法的具体用法?Java RatingBar.setMax怎么用?Java RatingBar.setMax使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在android.widget.RatingBar的用法示例。


在下文中一共展示了RatingBar.setMax方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setRating

import android.widget.RatingBar; //导入方法依赖的package包/类
public ViewHolder setRating(int viewId, float rating, int max)
{
    RatingBar view = getView(viewId);
    view.setMax(max);
    view.setRating(rating);
    return this;
}
 
开发者ID:pao11,项目名称:BaseAdapterRel,代码行数:8,代码来源:ViewHolder.java

示例2: setRating

import android.widget.RatingBar; //导入方法依赖的package包/类
@Override
public MartianViewHolder setRating(int viewId, float rating, int max) {
    RatingBar view = getView(viewId);
    view.setMax(max);
    view.setRating(rating);
    return this;
}
 
开发者ID:vsona,项目名称:RxJava2RetrofitDemo,代码行数:8,代码来源:MartianViewHolder.java

示例3: setRating

import android.widget.RatingBar; //导入方法依赖的package包/类
public ViewHolderHelper setRating(int viewId, float rating, int max) {
    RatingBar view = getView(viewId);
    view.setMax(max);
    view.setRating(rating);
    return this;
}
 
开发者ID:ynztlxdeai,项目名称:MVPtemplate,代码行数:7,代码来源:ViewHolderHelper.java

示例4: setRating

import android.widget.RatingBar; //导入方法依赖的package包/类
public ViewHolder setRating(int viewId, float rating, int max) {
    RatingBar view = getView(viewId);
    view.setMax(max);
    view.setRating(rating);
    return this;
}
 
开发者ID:angcyo,项目名称:RLibrary,代码行数:7,代码来源:ViewHolder.java

示例5: setRating

import android.widget.RatingBar; //导入方法依赖的package包/类
public BaseRvViewHolder setRating(int viewId, float rating, int max) {
    RatingBar view = getView(viewId);
    view.setMax(max);
    view.setRating(rating);
    return this;
}
 
开发者ID:yangchong211,项目名称:YCBaseAdapter,代码行数:7,代码来源:BaseRvViewHolder.java

示例6: setRating

import android.widget.RatingBar; //导入方法依赖的package包/类
public RvHolder setRating(int viewId, float rating, int max) {
    RatingBar view = getView(viewId);
    view.setMax(max);
    view.setRating(rating);
    return this;
}
 
开发者ID:fengdongfei,项目名称:CXJPadProject,代码行数:7,代码来源:RvHolder.java

示例7: setRating

import android.widget.RatingBar; //导入方法依赖的package包/类
/**
 * 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;
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:14,代码来源:BaseAdapterHelper.java

示例8: setRating

import android.widget.RatingBar; //导入方法依赖的package包/类
/**
 * 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;
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:15,代码来源:BaseViewHolder.java

示例9: setRating

import android.widget.RatingBar; //导入方法依赖的package包/类
/**
 * 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;
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:15,代码来源:BaseViewHolder.java

示例10: setRating

import android.widget.RatingBar; //导入方法依赖的package包/类
/**
 * 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 void for chaining.
 */
public void setRating(int viewId, float rating, int max) {
    RatingBar view = retrieveView(viewId);
    view.setMax(max);
    view.setRating(rating);

}
 
开发者ID:Aarthas,项目名称:android_Json2view,代码行数:15,代码来源:AdapterHelper.java

示例11: setRating

import android.widget.RatingBar; //导入方法依赖的package包/类
/**
 * 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;
}
 
开发者ID:GaoGersy,项目名称:MultiSelecter,代码行数:15,代码来源:BaseViewHolder.java


注:本文中的android.widget.RatingBar.setMax方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。