修改测试问题
This commit is contained in:
parent
1e466ac13d
commit
f24744afe8
@ -50,6 +50,17 @@ public class GuardUserModel extends BaseModel {
|
|||||||
private String guardName;
|
private String guardName;
|
||||||
@SerializedName("guard_img")
|
@SerializedName("guard_img")
|
||||||
private String guardImg;
|
private String guardImg;
|
||||||
|
@SerializedName("guard_level_card")
|
||||||
|
private String guardLevelCard;
|
||||||
|
|
||||||
|
public String getGuardLevelCard() {
|
||||||
|
return guardLevelCard;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GuardUserModel setGuardLevelCard(String guardLevelCard) {
|
||||||
|
this.guardLevelCard = guardLevelCard;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
public int getId() {
|
public int getId() {
|
||||||
return id;
|
return id;
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package com.yunbao.live.views;
|
package com.yunbao.live.views;
|
||||||
|
|
||||||
|
import android.text.TextUtils;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
@ -52,7 +53,14 @@ public class NewGuardViewHolder extends RecyclerView.ViewHolder {
|
|||||||
user_nicename.setText(guardUserModel.getUserNicename());
|
user_nicename.setText(guardUserModel.getUserNicename());
|
||||||
userSex.setImageResource(CommonIconUtil.getSexIcon(guardUserModel.getSex()));
|
userSex.setImageResource(CommonIconUtil.getSexIcon(guardUserModel.getSex()));
|
||||||
guardLevel.setText(String.valueOf(guardUserModel.getGuardLevel()));
|
guardLevel.setText(String.valueOf(guardUserModel.getGuardLevel()));
|
||||||
ImgLoader.display(itemView.getContext(), guardUserModel.getGuardImg(), tagKing);
|
|
||||||
contribution.setText(guardUserModel.getContribute());
|
contribution.setText(guardUserModel.getContribute());
|
||||||
|
|
||||||
|
if (TextUtils.equals(guardUserModel.getGuardLevelCard(),"0")){
|
||||||
|
ImgLoader.display(itemView.getContext(), guardUserModel.getGuardImg(), tagKing);
|
||||||
|
}else {
|
||||||
|
ImgLoader.display(itemView.getContext(), guardUserModel.getGuardImg(), tagKing);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user