Fix bug: 大额提现界面100%颜色改成绿色+1

This commit is contained in:
renhaoting 2026-01-07 10:25:38 +08:00
parent 0cba07f90a
commit ecaa1ae372
1 changed files with 3 additions and 4 deletions

View File

@ -4,9 +4,8 @@ import android.app.Activity
import android.content.Intent
import android.text.Spannable
import android.text.SpannableString
import android.text.SpannableStringBuilder
import android.text.method.ScrollingMovementMethod
import android.text.style.BackgroundColorSpan
import android.text.style.ForegroundColorSpan
import android.view.LayoutInflater
import androidx.activity.viewModels
import androidx.core.view.isVisible
@ -73,9 +72,9 @@ class WithDrawSubActivity : AppViewsEmptyViewModelActivity<ViewBinding>() {
tvHint.movementMethod = ScrollingMovementMethod.getInstance()
tvHint.isSelected = true
val greenBackgroundSpan = BackgroundColorSpan(ResUtil.getColor(R.color.green_1a))
val foreColorSpan = ForegroundColorSpan(ResUtil.getColor(R.color.green_39))
val ssb = SpannableString(tvTopHint.text).apply {
setSpan(greenBackgroundSpan, 0, 5, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE)
setSpan(foreColorSpan, 0, 5, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE)
}
tvTopHint.text = ssb