多人PK问题修复
This commit is contained in:
@@ -4115,17 +4115,26 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
textGrade2.setText(String.valueOf(userScore));
|
||||
userId2 = userId;
|
||||
} else if (i == 2) {
|
||||
if (pkScores.size() == 3) {
|
||||
linearGrade4.setVisibility(View.VISIBLE);
|
||||
textPkName4.setText(userNiceName);
|
||||
ImgLoader.display(mContext, resScore, imageGrade4);
|
||||
textGrade4.setText(String.valueOf(userScore));
|
||||
userId4 = userId;
|
||||
} else {
|
||||
linearGrade3.setVisibility(View.VISIBLE);
|
||||
textPkName3.setText(userNiceName);
|
||||
ImgLoader.display(mContext, resScore, imageGrade3);
|
||||
textGrade3.setText(String.valueOf(userScore));
|
||||
userId3 = userId;
|
||||
}
|
||||
|
||||
} else if (i == 3) {
|
||||
linearGrade4.setVisibility(View.VISIBLE);
|
||||
textPkName4.setText(userNiceName);
|
||||
ImgLoader.display(mContext, resScore, imageGrade4);
|
||||
textGrade4.setText(String.valueOf(userScore));
|
||||
userId4 = userId;
|
||||
} else if (i == 3) {
|
||||
linearGrade3.setVisibility(View.VISIBLE);
|
||||
textPkName3.setText(userNiceName);
|
||||
ImgLoader.display(mContext, resScore, imageGrade3);
|
||||
textGrade3.setText(String.valueOf(userScore));
|
||||
userId3 = userId;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone">
|
||||
android:visibility="visible">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/linear_grade1"
|
||||
@@ -65,7 +65,7 @@
|
||||
android:layout_gravity="end"
|
||||
android:gravity="end"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone">
|
||||
android:visibility="visible">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/linear_grade2"
|
||||
@@ -121,7 +121,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone">
|
||||
android:visibility="visible">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/text_pk_name3"
|
||||
@@ -178,7 +178,7 @@
|
||||
android:layout_gravity="bottom|end"
|
||||
android:gravity="end"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone">
|
||||
android:visibility="visible">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/text_pk_name4"
|
||||
|
||||
Reference in New Issue
Block a user