6.5.4礼物冠名

This commit is contained in:
18401019693 2023-08-04 16:14:36 +08:00
parent 0c096dcafc
commit ebcfddf450

View File

@ -463,10 +463,10 @@ public class LiveGiftPopup extends AbsDialogFragment {
userNextLevel, leveNext);
int leveNextIndexOf = hint.indexOf(leveNext);
int leveNextSize = leveNext.length();
int userNextLevelIndexOf = msg.indexOf(userNextLevel);
int userNextLevelIndexOf = hint.indexOf(userNextLevel);
int userNextLevelSize = userNextLevel.length();
SpannableStringBuilder builder = new SpannableStringBuilder();
builder.append(msg);
builder.append(hint);
builder.setSpan(new
ForegroundColorSpan(Color.parseColor("#FFC722")),
leveNextIndexOf, leveNextIndexOf + leveNextSize,
@ -476,6 +476,8 @@ public class LiveGiftPopup extends AbsDialogFragment {
userNextLevelIndexOf, userNextLevelIndexOf + userNextLevelSize,
Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
leaveHint.setText(builder);
progressBar.setProgress(nextLeve);
progressBar.setMax(maxLeve);
} else {
String hint = getString(R.string.reach_the_top);
leaveHint.setText(hint);