个播PK:PK面板倒计时结束文案改为结果结束中
This commit is contained in:
@@ -96,9 +96,9 @@ class SingleRoomPKBoardView @JvmOverloads constructor(
|
||||
binding.tvPk.text = "PK"
|
||||
binding.tvTime.text = roomPkBean.endTime.let {
|
||||
val remainTime = (it - CurrentTimeUtils.getCurrentTime()).toInt() / 1000
|
||||
binding.tvTime.setTextColor(Color.parseColor(if (remainTime <= 30) "#ff87a1" else "#fff600"))
|
||||
TimeUtil.secToTime(remainTime)
|
||||
} ?: "00:00"
|
||||
binding.tvTime.setTextColor(Color.parseColor(if (remainTime <= 30) "#ff87a1" else "#ffffff"))
|
||||
if (remainTime > 0) TimeUtil.secToTime(remainTime) else "结果结算中"
|
||||
} ?: "结果结算中"
|
||||
} else {
|
||||
binding.tvPk.text = "惩罚时间"
|
||||
binding.tvTime.text = roomPkBean?.penaltyEndTime?.let {
|
||||
|
@@ -73,6 +73,7 @@
|
||||
android:layout_marginStart="36dp"
|
||||
android:layout_marginEnd="23dp"
|
||||
android:maxLines="2"
|
||||
android:gravity="center"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="10dp"
|
||||
app:layout_constraintBottom_toBottomOf="@id/iv_avatar_right"
|
||||
@@ -86,7 +87,7 @@
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginEnd="14dp"
|
||||
android:layout_marginBottom="14dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:background="@drawable/single_room_pk_bg_notice_btn"
|
||||
android:gravity="center"
|
||||
android:includeFontPadding="false"
|
||||
|
Reference in New Issue
Block a user