6.5.4礼物冠名
This commit is contained in:
parent
09e5f9b984
commit
7226add482
@ -11,7 +11,7 @@ public class GiftWallGiftDetail extends BaseModel {
|
|||||||
@SerializedName("avatar")
|
@SerializedName("avatar")
|
||||||
private String avatar;
|
private String avatar;
|
||||||
@SerializedName("naming_coin")
|
@SerializedName("naming_coin")
|
||||||
private int namingCoin;
|
private String namingCoin;
|
||||||
|
|
||||||
public int getUid() {
|
public int getUid() {
|
||||||
return uid;
|
return uid;
|
||||||
@ -40,11 +40,11 @@ public class GiftWallGiftDetail extends BaseModel {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getNamingCoin() {
|
public String getNamingCoin() {
|
||||||
return namingCoin;
|
return namingCoin;
|
||||||
}
|
}
|
||||||
|
|
||||||
public GiftWallGiftDetail setNamingCoin(int namingCoin) {
|
public GiftWallGiftDetail setNamingCoin(String namingCoin) {
|
||||||
this.namingCoin = namingCoin;
|
this.namingCoin = namingCoin;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -9,9 +9,9 @@ ext {
|
|||||||
]
|
]
|
||||||
manifestPlaceholders = [
|
manifestPlaceholders = [
|
||||||
//正式、
|
//正式、
|
||||||
serverHost : "https://napi.yaoulive.com",
|
// serverHost : "https://napi.yaoulive.com",
|
||||||
// 测试
|
// 测试
|
||||||
// serverHost : "https://ceshi.yaoulive.com",
|
serverHost : "https://ceshi.yaoulive.com",
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ public class GiftWallItemPopup extends CenterPopupView {
|
|||||||
giftDetailsBtn.setBackgroundResource(R.drawable.background_skip_button);
|
giftDetailsBtn.setBackgroundResource(R.drawable.background_skip_button);
|
||||||
giftDetailsBtn.setEnabled(true);
|
giftDetailsBtn.setEnabled(true);
|
||||||
giftDetailsBtn.setTextColor(Color.parseColor("#F16D00"));
|
giftDetailsBtn.setTextColor(Color.parseColor("#F16D00"));
|
||||||
}else {
|
} else {
|
||||||
giftDetailsBtn.setBackgroundResource(R.drawable.background_skip_unselect_button);
|
giftDetailsBtn.setBackgroundResource(R.drawable.background_skip_unselect_button);
|
||||||
giftDetailsBtn.setEnabled(false);
|
giftDetailsBtn.setEnabled(false);
|
||||||
giftDetailsBtn.setTextColor(Color.parseColor("#F2F2F2"));
|
giftDetailsBtn.setTextColor(Color.parseColor("#F2F2F2"));
|
||||||
@ -112,7 +112,7 @@ public class GiftWallItemPopup extends CenterPopupView {
|
|||||||
vacantPositionAwaits.setText(data.getUserNicename());
|
vacantPositionAwaits.setText(data.getUserNicename());
|
||||||
vacantPosition.setText(giftWallModel.getGiftname());
|
vacantPosition.setText(giftWallModel.getGiftname());
|
||||||
}
|
}
|
||||||
if (data.getNamingCoin() == 0) {
|
if (TextUtils.isEmpty(data.getNamingCoin()) || TextUtils.equals(data.getNamingCoin(), "0")) {
|
||||||
distanceNaming.setVisibility(GONE);
|
distanceNaming.setVisibility(GONE);
|
||||||
} else {
|
} else {
|
||||||
distanceNaming.setVisibility(VISIBLE);
|
distanceNaming.setVisibility(VISIBLE);
|
||||||
|
@ -2,7 +2,6 @@ package com.yunbao.live.views;
|
|||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.graphics.Color;
|
import android.graphics.Color;
|
||||||
import android.text.TextUtils;
|
|
||||||
import android.util.TypedValue;
|
import android.util.TypedValue;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.animation.AccelerateDecelerateInterpolator;
|
import android.view.animation.AccelerateDecelerateInterpolator;
|
||||||
@ -74,7 +73,7 @@ public class FrameGiftViewHolder extends RecyclerView.ViewHolder {
|
|||||||
} else {
|
} else {
|
||||||
giftHeight = contextLayoutGiftHeight;
|
giftHeight = contextLayoutGiftHeight;
|
||||||
}
|
}
|
||||||
linearParams.height = (giftHeight-30) / 2;
|
linearParams.height = (giftHeight - 30) / 2;
|
||||||
itemView.setLayoutParams(linearParams);
|
itemView.setLayoutParams(linearParams);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -84,11 +83,11 @@ public class FrameGiftViewHolder extends RecyclerView.ViewHolder {
|
|||||||
}
|
}
|
||||||
ImgLoader.display(mContext, model.getIcon(), giftIcon);
|
ImgLoader.display(mContext, model.getIcon(), giftIcon);
|
||||||
ImgLoader.display(mContext, model.getCornerMark(), cornerMark);
|
ImgLoader.display(mContext, model.getCornerMark(), cornerMark);
|
||||||
if (!TextUtils.equals(model.getNamingLiveuid(), "0") && !TextUtils.equals(model.getNamingUid(), "0")) {
|
// if (!TextUtils.equals(model.getNamingLiveuid(), "0") && !TextUtils.equals(model.getNamingUid(), "0")) {
|
||||||
giftName.setText(model.getNamingUserName());
|
// giftName.setText(model.getNamingUserName());
|
||||||
} else {
|
// } else {
|
||||||
giftName.setText(model.getName());
|
giftName.setText(model.getName());
|
||||||
}
|
// }
|
||||||
|
|
||||||
//特殊礼物红包
|
//特殊礼物红包
|
||||||
if (model.getType() == 9999999) {
|
if (model.getType() == 9999999) {
|
||||||
|
Loading…
Reference in New Issue
Block a user