6.5.4礼物冠名
This commit is contained in:
@@ -74,7 +74,7 @@ public class GiftWallItemPopup extends CenterPopupView {
|
||||
giftDetailsBtn.setBackgroundResource(R.drawable.background_skip_button);
|
||||
giftDetailsBtn.setEnabled(true);
|
||||
giftDetailsBtn.setTextColor(Color.parseColor("#F16D00"));
|
||||
}else {
|
||||
} else {
|
||||
giftDetailsBtn.setBackgroundResource(R.drawable.background_skip_unselect_button);
|
||||
giftDetailsBtn.setEnabled(false);
|
||||
giftDetailsBtn.setTextColor(Color.parseColor("#F2F2F2"));
|
||||
@@ -112,7 +112,7 @@ public class GiftWallItemPopup extends CenterPopupView {
|
||||
vacantPositionAwaits.setText(data.getUserNicename());
|
||||
vacantPosition.setText(giftWallModel.getGiftname());
|
||||
}
|
||||
if (data.getNamingCoin() == 0) {
|
||||
if (TextUtils.isEmpty(data.getNamingCoin()) || TextUtils.equals(data.getNamingCoin(), "0")) {
|
||||
distanceNaming.setVisibility(GONE);
|
||||
} else {
|
||||
distanceNaming.setVisibility(VISIBLE);
|
||||
|
||||
@@ -2,7 +2,6 @@ package com.yunbao.live.views;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Color;
|
||||
import android.text.TextUtils;
|
||||
import android.util.TypedValue;
|
||||
import android.view.View;
|
||||
import android.view.animation.AccelerateDecelerateInterpolator;
|
||||
@@ -74,7 +73,7 @@ public class FrameGiftViewHolder extends RecyclerView.ViewHolder {
|
||||
} else {
|
||||
giftHeight = contextLayoutGiftHeight;
|
||||
}
|
||||
linearParams.height = (giftHeight-30) / 2;
|
||||
linearParams.height = (giftHeight - 30) / 2;
|
||||
itemView.setLayoutParams(linearParams);
|
||||
}
|
||||
});
|
||||
@@ -84,11 +83,11 @@ public class FrameGiftViewHolder extends RecyclerView.ViewHolder {
|
||||
}
|
||||
ImgLoader.display(mContext, model.getIcon(), giftIcon);
|
||||
ImgLoader.display(mContext, model.getCornerMark(), cornerMark);
|
||||
if (!TextUtils.equals(model.getNamingLiveuid(), "0") && !TextUtils.equals(model.getNamingUid(), "0")) {
|
||||
giftName.setText(model.getNamingUserName());
|
||||
} else {
|
||||
giftName.setText(model.getName());
|
||||
}
|
||||
// if (!TextUtils.equals(model.getNamingLiveuid(), "0") && !TextUtils.equals(model.getNamingUid(), "0")) {
|
||||
// giftName.setText(model.getNamingUserName());
|
||||
// } else {
|
||||
giftName.setText(model.getName());
|
||||
// }
|
||||
|
||||
//特殊礼物红包
|
||||
if (model.getType() == 9999999) {
|
||||
|
||||
Reference in New Issue
Block a user