|
@@ -121,14 +121,18 @@ class WaftView : FrameLayout {
|
|
|
val sendName = "<font color='#FFDB43'>${next.senderName}</font>"
|
|
|
val giftName = "<font color='#FFDB43'>${localName}</font>"
|
|
|
val multiple = "<font color='#FFDB43'>${next.multiple}</font>"
|
|
|
- binding?.ll?.setBackgroundResource(R.mipmap.waft_big_prize)
|
|
|
+ binding?.ll?.setBackgroundResource(R.mipmap.bg_waft_big_prize)
|
|
|
+ binding?.ivPrize?.setImageResource(R.mipmap.ic_waft_big_prize)
|
|
|
+ binding?.tvPrize?.text = "${next.multiple}"
|
|
|
binding?.marqueeTextView?.text = Html.fromHtml("\u200E${AppContext.getContext().resources.getString(R.string.big_prize).format(sendName,giftName,multiple)}")
|
|
|
|
|
|
}else{
|
|
|
val sendName = "<font color='#FFDB43'>${next.senderName}</font>"
|
|
|
val giftName = "<font color='#FFDB43'>${localName}</font>"
|
|
|
val receiverName = "<font color='#FFDB43'>${next.receiverName}</font>"
|
|
|
- binding?.ll?.setBackgroundResource(R.mipmap.waft_bg)
|
|
|
+ binding?.ll?.setBackgroundResource(R.mipmap.bg_waft_send)
|
|
|
+ binding?.ivPrize?.setImageResource(R.mipmap.ic_waft_send)
|
|
|
+ binding?.tvPrize?.text = ""
|
|
|
binding?.marqueeTextView?.text = Html.fromHtml("\u200E${AppContext.getContext().resources.getString(R.string.big_gift_msg).format(sendName,giftName,receiverName)}")
|
|
|
}
|
|
|
}
|
|
@@ -137,7 +141,9 @@ class WaftView : FrameLayout {
|
|
|
val sendName = "<font color='#FFDB43'>${next.senderName}</font>"
|
|
|
val gameName = "<font color='#FFDB43'>${next.gameName}</font>"
|
|
|
val coin = "<font color='#FFDB43'>${next.coin}</font>"
|
|
|
- binding?.ll?.setBackgroundResource(R.mipmap.waft_game_bg)
|
|
|
+ binding?.ll?.setBackgroundResource(R.mipmap.bg_waft_game)
|
|
|
+ binding?.tvPrize?.setBackgroundResource(R.mipmap.ic_waft_game)
|
|
|
+ binding?.tvPrize?.text = ""
|
|
|
when(SwagoInfo.getLanguageCode()){
|
|
|
"id","ms" -> {
|
|
|
binding?.marqueeTextView?.text = Html.fromHtml("\u200E${AppContext.getContext().resources.getString(R.string.game_prize).format(sendName,coin,gameName)}")
|
|
@@ -152,26 +158,33 @@ class WaftView : FrameLayout {
|
|
|
505 -> {
|
|
|
val sendName = "<font color='#FFDB43'>${next.userName}</font>"
|
|
|
val coin = "<font color='#FFDB43'>${next.sort}</font>"
|
|
|
- binding?.ll?.setBackgroundResource(R.mipmap.waft_game_bg)
|
|
|
- binding?.marqueeTextView?.text = "恭喜XXXX成为本场今日之星活动第1名"
|
|
|
+ binding?.ll?.setBackgroundResource(R.mipmap.bg_waft_function)
|
|
|
+ binding?.ivPrize?.setImageResource(R.mipmap.ic_waft_function)
|
|
|
+ binding?.tvPrize?.text = ""
|
|
|
+ binding?.marqueeTextView?.text = Html.fromHtml("\u200E${AppContext.getContext().resources.getString(R.string.congratulations_to_for_start_of_today).format(sendName,coin)}")
|
|
|
}
|
|
|
506 -> {
|
|
|
val sendName = "<font color='#FFDB43'>${next.userName}</font>"
|
|
|
val coin = "<font color='#FFDB43'>${next.sort}</font>"
|
|
|
- binding?.ll?.setBackgroundResource(R.mipmap.waft_game_bg)
|
|
|
- binding?.marqueeTextView?.text = "恭喜XXXX成为本场游戏之王活动第1名"
|
|
|
+ binding?.ll?.setBackgroundResource(R.mipmap.bg_waft_function)
|
|
|
+ binding?.ivPrize?.setImageResource(R.mipmap.ic_waft_function)
|
|
|
+ binding?.tvPrize?.text = ""
|
|
|
+ binding?.marqueeTextView?.text = Html.fromHtml("\u200E${AppContext.getContext().resources.getString(R.string.congratulations_to_for_king_of_game).format(sendName,coin)}")
|
|
|
}
|
|
|
507 -> {
|
|
|
val sendName = "<font color='#FFDB43'>${next.userName}</font>"
|
|
|
- val coin = "<font color='#FFDB43'>${next.sort}</font>"
|
|
|
- binding?.ll?.setBackgroundResource(R.mipmap.waft_game_bg)
|
|
|
- binding?.marqueeTextView?.text = "太幸运啦,恭喜XXXX在砸金蛋活动中得到XXX金币奖励"
|
|
|
+ val coin = "<font color='#FFDB43'>${next.winCoin}</font>"
|
|
|
+ binding?.ll?.setBackgroundResource(R.mipmap.bg_waft_function)
|
|
|
+ binding?.ivPrize?.setImageResource(R.mipmap.ic_waft_function)
|
|
|
+ binding?.tvPrize?.text = ""
|
|
|
+ binding?.marqueeTextView?.text = Html.fromHtml("\u200E${AppContext.getContext().resources.getString(R.string.so_lucky_golden_egg).format(sendName,coin)}")
|
|
|
}
|
|
|
508 -> {
|
|
|
- val sendName = "<font color='#FFDB43'>${next.userName}</font>"
|
|
|
- val coin = "<font color='#FFDB43'>${next.sort}</font>"
|
|
|
- binding?.ll?.setBackgroundResource(R.mipmap.waft_game_bg)
|
|
|
- binding?.marqueeTextView?.text = "砸金蛋活动奖池已经达到xxxx,大家快去参与呀"
|
|
|
+ val coin = "<font color='#FFDB43'>${next.actCoin}</font>"
|
|
|
+ binding?.ll?.setBackgroundResource(R.mipmap.bg_waft_function)
|
|
|
+ binding?.ivPrize?.setImageResource(R.mipmap.ic_waft_function)
|
|
|
+ binding?.tvPrize?.text = ""
|
|
|
+ binding?.marqueeTextView?.text = Html.fromHtml("\u200E${AppContext.getContext().resources.getString(R.string.prize_pool_golden_egg).format(coin)}")
|
|
|
}
|
|
|
}
|
|
|
|