parent
94d581a4f3
commit
0714918338
|
@ -53,6 +53,9 @@ data class LiveRoomJoinChat(
|
||||||
) : LiveRoomChat() {
|
) : LiveRoomChat() {
|
||||||
override var type = LiveRoomChatType.JOIN
|
override var type = LiveRoomChatType.JOIN
|
||||||
override fun bind(context: Context, binding: ViewBinding, onClickProfile: ((Long) -> Unit)?) {
|
override fun bind(context: Context, binding: ViewBinding, onClickProfile: ((Long) -> Unit)?) {
|
||||||
|
(binding as ItemLiveRoomJoinChatBinding).tvJoin.setTextColor(
|
||||||
|
ContextCompat.getColor(context, R.color.color_eeeeee)
|
||||||
|
)
|
||||||
val str = "'$nickname'님이 입장하셨습니다."
|
val str = "'$nickname'님이 입장하셨습니다."
|
||||||
val spStr = SpannableString(str)
|
val spStr = SpannableString(str)
|
||||||
|
|
||||||
|
@ -407,14 +410,17 @@ data class LiveRoomHeartDonationChat(
|
||||||
) : LiveRoomChat() {
|
) : LiveRoomChat() {
|
||||||
override var type = LiveRoomChatType.JOIN
|
override var type = LiveRoomChatType.JOIN
|
||||||
override fun bind(context: Context, binding: ViewBinding, onClickProfile: ((Long) -> Unit)?) {
|
override fun bind(context: Context, binding: ViewBinding, onClickProfile: ((Long) -> Unit)?) {
|
||||||
val str = "'$nickname'님이 마음을 전했습니다\uD83D\uDC95"
|
(binding as ItemLiveRoomJoinChatBinding).tvJoin.setTextColor(
|
||||||
|
ContextCompat.getColor(context, R.color.color_111111)
|
||||||
|
)
|
||||||
|
val str = "'$nickname'님이 마음을 전했습니다 : \uD83D\uDC95"
|
||||||
val spStr = SpannableString(str)
|
val spStr = SpannableString(str)
|
||||||
|
|
||||||
spStr.setSpan(
|
spStr.setSpan(
|
||||||
ForegroundColorSpan(
|
ForegroundColorSpan(
|
||||||
ContextCompat.getColor(
|
ContextCompat.getColor(
|
||||||
context,
|
context,
|
||||||
R.color.color_ffdc00
|
R.color.color_ec3aa6
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
str.indexOf("'") + 1,
|
str.indexOf("'") + 1,
|
||||||
|
@ -430,6 +436,6 @@ data class LiveRoomHeartDonationChat(
|
||||||
)
|
)
|
||||||
|
|
||||||
(binding as ItemLiveRoomJoinChatBinding).tvJoin.text = spStr
|
(binding as ItemLiveRoomJoinChatBinding).tvJoin.text = spStr
|
||||||
binding.root.setBackgroundResource(R.drawable.bg_round_corner_4_7_ccff7488)
|
binding.root.setBackgroundResource(R.drawable.bg_round_corner_4_7_ccffffff)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<solid android:color="@color/color_ccff7488" />
|
<solid android:color="@color/color_ccffffff" />
|
||||||
<corners android:radius="4.7dp" />
|
<corners android:radius="4.7dp" />
|
||||||
<stroke
|
<stroke
|
||||||
android:width="1dp"
|
android:width="1dp"
|
||||||
android:color="@color/color_ccff7488" />
|
android:color="@color/color_ccffffff" />
|
||||||
</shape>
|
</shape>
|
|
@ -125,5 +125,6 @@
|
||||||
<color name="color_ff14d9">#FF14D9</color>
|
<color name="color_ff14d9">#FF14D9</color>
|
||||||
<color name="color_333bb9f1">#333BB9F1</color>
|
<color name="color_333bb9f1">#333BB9F1</color>
|
||||||
<color name="color_672bff">#672BFF</color>
|
<color name="color_672bff">#672BFF</color>
|
||||||
<color name="color_ccff7488">#CCFF7488</color>
|
<color name="color_ccffffff">#CCFFFFFF</color>
|
||||||
|
<color name="color_ec3aa6">#EC3AA6</color>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
Loading…
Reference in New Issue