diff --git a/app/src/main/java/com/gamedog/vididin/beans/RecordCash.kt b/app/src/main/java/com/gamedog/vididin/beans/RecordCash.kt index c7087b2..1ff1540 100644 --- a/app/src/main/java/com/gamedog/vididin/beans/RecordCash.kt +++ b/app/src/main/java/com/gamedog/vididin/beans/RecordCash.kt @@ -25,6 +25,7 @@ class RecordCashShow: RecordCash() { var title: Int = 0 var description: Int = 0 var iconRes: Int = 0 + var textColor: Int = R.color.green_39 } @@ -41,30 +42,35 @@ fun RecordCash.toShowBean(): RecordCashShow { title = R.string.record_cash_title_convert_from_gold description = R.string.record_cash_descr_convert_from_gold iconRes = R.mipmap.task_gold + textColor = R.color.green_39 } RECORD_CASH_PLUS_BOX_TASK -> { title = R.string.record_cash_title_box description = R.string.record_cash_descr_box iconRes = R.mipmap.icon_gift + textColor = R.color.green_39 } 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_fail + iconRes = R.mipmap.icon_convert_cash + textColor = R.color.red_28 } RECORD_CASH_PLUS_WITHDRAW_FAIL -> { title = R.string.record_cash_title_withdraw_failed description = R.string.record_cash_descr_withdraw_failed_3 - iconRes = R.mipmap.icon_ad + iconRes = R.mipmap.icon_fail + textColor = R.color.gray3 } 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_check + textColor = R.color.green_39 } } diff --git a/app/src/main/java/com/gamedog/vididin/features/withdrawrecord/RecordCashRvAdapter.kt b/app/src/main/java/com/gamedog/vididin/features/withdrawrecord/RecordCashRvAdapter.kt index 8bfa2d3..e87cece 100644 --- a/app/src/main/java/com/gamedog/vididin/features/withdrawrecord/RecordCashRvAdapter.kt +++ b/app/src/main/java/com/gamedog/vididin/features/withdrawrecord/RecordCashRvAdapter.kt @@ -28,9 +28,10 @@ class RecordCashRvAdapter : ListAdapter