增加魔法帽和星际探险公屏昵称点击事件

This commit is contained in:
huangjian
2023-03-21 14:33:46 +08:00
parent adac9ad536
commit a8b993572c

View File

@@ -1731,7 +1731,8 @@ public class MessageView extends FrameLayout {
RoomBoxPrizeAttachment attachment = (RoomBoxPrizeAttachment) chatRoomMessage.getAttachment();
// 内容
SpannableBuilder text = new SpannableBuilder(tvContent)
.append("厉害了!", new ForegroundColorSpan(appColor),
.append("厉害了!", new ForegroundColorSpan(greyColor))
.append(attachment.getNick() + " ", new ForegroundColorSpan(appColor),
new OriginalDrawStatusClickSpan() {
@Override
@@ -1741,7 +1742,6 @@ public class MessageView extends FrameLayout {
}
}
})
.append(attachment.getNick() + " ", new ForegroundColorSpan(appColor))
.append("在魔法帽中获得 ", new ForegroundColorSpan(whiteColor))
.append(attachment.getPrizeName(), new ForegroundColorSpan(appColor));
if (attachment.getPrizeNum() > 1) {
@@ -1759,7 +1759,8 @@ public class MessageView extends FrameLayout {
RoomBoxPrizeAttachment attachment = (RoomBoxPrizeAttachment) chatRoomMessage.getAttachment();
// 内容
SpannableBuilder text = new SpannableBuilder(tvContent)
.append("厉害了 ", new ForegroundColorSpan(appColor),
.append("厉害了 ", new ForegroundColorSpan(greyColor))
.append(attachment.getNick() + " ", new ForegroundColorSpan(appColor),
new OriginalDrawStatusClickSpan() {
@Override
@@ -1769,7 +1770,6 @@ public class MessageView extends FrameLayout {
}
}
})
.append(attachment.getNick() + " ", new ForegroundColorSpan(appColor))
.append("在星际探险中获得", new ForegroundColorSpan(whiteColor))
.append(attachment.getPrizeName(), new ForegroundColorSpan(appColor));
if (attachment.getPrizeNum() > 1) {
@@ -2411,7 +2411,7 @@ public class MessageView extends FrameLayout {
}
}
})
.append(",",new ForegroundColorSpan(whiteColor));
.append(",", new ForegroundColorSpan(whiteColor));
}
Editable msg = text.builder;
msg.delete(msg.length() - 1, msg.length());