调整PK排位赛中,连胜大于等于3场才显示连胜字样

This commit is contained in:
zlzw 2022-11-16 13:47:05 +08:00
parent 9b37374066
commit 7842c1b838
2 changed files with 12 additions and 5 deletions

View File

@ -1540,9 +1540,14 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
pkRankVf.addView(titleIcon);
pkRankVf.addView(hourView);
pkRankVf.startFlipping();
if(Integer.parseInt(bean.getRedVal())>2) {
mRedVal.setVisibility(View.VISIBLE);
mRedVal.setText(bean.getRedVal() + "連勝");
}
if(Integer.parseInt(bean.getBlueVal())>2) {
mBlueVal.setVisibility(View.VISIBLE);
mBlueVal.setText(bean.getBlueVal() + "連勝");
}
//ImgLoader.display(mContext,bean.getPkTopImgUrl(),mPkRankTopIcon);
}
}, Throwable::printStackTrace)

View File

@ -1273,7 +1273,8 @@
android:paddingBottom="8dp"
android:textColor="#FFFFFF"
android:textSize="15sp"
android:textStyle="bold" />
android:textStyle="bold"
android:visibility="gone" />
<TextView
android:id="@+id/pk_rank_blue_val"
@ -1290,7 +1291,8 @@
android:paddingBottom="8dp"
android:textColor="#FFFFFF"
android:textSize="15sp"
android:textStyle="bold" />
android:textStyle="bold"
android:visibility="gone" />
<LinearLayout
android:id="@+id/pk_red_layout"