record相关 图标

This commit is contained in:
renhaoting 2025-12-25 11:31:16 +08:00
parent 2001936032
commit 727321ad70
8 changed files with 14 additions and 13 deletions

View File

@ -40,19 +40,19 @@ fun RecordCash.toShowBean(): RecordCashShow {
RECORD_CASH_PLUS_GOLD_CONVERT -> {
title = R.string.record_cash_title_convert_from_gold
description = R.string.record_cash_descr_convert_from_gold
iconRes = R.mipmap.icon_ad
iconRes = R.mipmap.task_gold
}
RECORD_CASH_PLUS_BOX_TASK -> {
title = R.string.record_cash_title_box
description = R.string.record_cash_descr_box
iconRes = R.mipmap.icon_ad
iconRes = R.mipmap.icon_gift
}
RECORD_CASH_PLUS_WITHDRAW_ONGOING -> {
title = R.string.record_cash_title_withdraw_ongoing
description = R.string.record_cash_descr_withdraw_onging
iconRes = R.mipmap.icon_ad
iconRes = R.mipmap.icon_fail
}
RECORD_CASH_PLUS_WITHDRAW_FAIL -> {
@ -64,7 +64,7 @@ fun RecordCash.toShowBean(): RecordCashShow {
RECORD_CASH_MINUS_WITHDRAW_SUCCESS -> {
title = R.string.record_cash_title_withdraw_success
description = R.string.record_cash_descr_withdraw_success
iconRes = R.mipmap.icon_ad
iconRes = R.mipmap.icon_check
}
}

View File

@ -44,7 +44,7 @@ fun RecordGold.toShowBean(): RecordGoldShow {
RECORD_GOLD_PLUS_WATCH_VIDEO_BY_TIME_DURATION -> {
title = R.string.record_gold_title_watch_video_time_duration
description = R.string.record_gold_descr_watch_video_time_duration
iconRes = R.mipmap.icon_ad
iconRes = R.mipmap.icon_video_task
}
RECORD_GOLD_PLUS_WATCH_REWARD_AD -> {
@ -56,31 +56,31 @@ fun RecordGold.toShowBean(): RecordGoldShow {
RECORD_GOLD_PLUS_NEWBIE_GIFT -> {
title = R.string.record_gold_title_newbie_gift
description = R.string.record_gold_descr_newbie_gift
iconRes = R.mipmap.icon_ad
iconRes = R.mipmap.icon_gift
}
RECORD_GOLD_PLUS_TASK_ENABLE_NOTIFY -> {
title = R.string.record_gold_title_enable_notify
description = R.string.record_gold_descr_enable_notify
iconRes = R.mipmap.icon_ad
iconRes = R.mipmap.icon_notify
}
RECORD_GOLD_PLUS_TASK_FIRST_WITHDRAW -> {
title = R.string.record_gold_title_first_withdraw
description = R.string.record_gold_descr_first_withdraw
iconRes = R.mipmap.icon_ad
iconRes = R.mipmap.icon_dollar
}
RECORD_GOLD_PLUS_TASK_JOIN_DISCORD -> {
title = R.string.record_gold_title_join_discord
description = R.string.record_gold_descr_join_discord
iconRes = R.mipmap.icon_ad
iconRes = R.mipmap.icon_discord
}
RECORD_GOLD_PLUS_TASK_SIGN -> {
title = R.string.record_gold_title_sign
description = R.string.record_gold_descr_sign
iconRes = R.mipmap.icon_ad
iconRes = R.mipmap.icon_calendar
}
RECORD_GOLD_PLUS_TASK_DAILY_AD -> {
@ -92,13 +92,13 @@ fun RecordGold.toShowBean(): RecordGoldShow {
RECORD_GOLD_PLUS_TASK_DAILY_VIDEO -> {
title = R.string.record_gold_title_daily_task_video
description = R.string.record_gold_descr_daily_task_video
iconRes = R.mipmap.icon_ad
iconRes = R.mipmap.icon_video_task
}
RECORD_GOLD_MINUS_CONVERT_2_CASH -> {
title = R.string.record_gold_title_convert_2_cash
description = R.string.record_gold_descr_convert_2_cash
iconRes = R.mipmap.icon_ad
iconRes = R.mipmap.icon_convert_cash
}
}
}

View File

@ -7,6 +7,7 @@ import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.ama.core.architecture.util.ResUtil
import com.gamedog.vididin.beans.RecordCashShow
import com.gamedog.vididin.core.login.login.AccountManager
import com.vididin.real.money.game.R
import java.text.SimpleDateFormat
import com.vididin.real.money.game.databinding.FragmentWithdrawRecordCashItemBinding as ViewBinding
@ -27,7 +28,7 @@ class RecordCashRvAdapter : ListAdapter<RecordCashShow, RecordCashRvAdapter.View
binding.tvDate.text = SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(data.dateMs)
binding.tvTitle.text = ResUtil.getString(data.title)
binding.tvDescription.text = ResUtil.getString(data.description)
binding.tvAmount.text = data.amountNum.toString()
binding.tvAmount.text = (if (data.amountNum < 0) "-" else "") + ResUtil.getString(R.string.cash) + " " + String.format("%.2f", Math.abs(data.amountNum))
binding.ivType.setImageResource(data.iconRes)
binding.tvAmount.setTextColor(ResUtil.getColor(if (data.isSuccess) R.color.md_theme_error else R.color.green_39))
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB