From 680780145c570c191d1f02ae6312311334360874 Mon Sep 17 00:00:00 2001 From: 18142669586 <1669783059@qq.com> Date: Sat, 1 Jun 2024 12:07:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A4=9A=E4=BA=BA=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E9=97=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../presenter/LiveSwLinkMicPkPresenter.java | 90 +++++++++---------- 1 file changed, 45 insertions(+), 45 deletions(-) diff --git a/live/src/main/java/com/yunbao/live/presenter/LiveSwLinkMicPkPresenter.java b/live/src/main/java/com/yunbao/live/presenter/LiveSwLinkMicPkPresenter.java index 10b4c19fe..32f1797fa 100644 --- a/live/src/main/java/com/yunbao/live/presenter/LiveSwLinkMicPkPresenter.java +++ b/live/src/main/java/com/yunbao/live/presenter/LiveSwLinkMicPkPresenter.java @@ -1740,63 +1740,63 @@ public class LiveSwLinkMicPkPresenter implements View.OnClickListener { if (TextUtils.equals(userID, userID1)) { textGrade1.setText(String.valueOf(userScore)); if (!score.containsKey("paiming")) { - ImgLoader.display(mContext, R.mipmap.icon_livepk_no1, imageGrade1); + imageGrade1.setImageResource(R.mipmap.icon_livepk_no1); } else { int ranking = score.getIntValue("paiming"); switch (ranking) { case 1: - ImgLoader.display(mContext, R.mipmap.icon_livepk_no1, imageGrade1); + imageGrade1.setImageResource(R.mipmap.icon_livepk_no1); break; case 2: - ImgLoader.display(mContext, R.mipmap.icon_livepk_no2, imageGrade1); + imageGrade1.setImageResource(R.mipmap.icon_livepk_no2); break; case 3: - ImgLoader.display(mContext, R.mipmap.icon_livepk_no3, imageGrade1); + imageGrade1.setImageResource(R.mipmap.icon_livepk_no3); break; case 4: - ImgLoader.display(mContext, R.mipmap.icon_livepk_no4, imageGrade1); + imageGrade1.setImageResource(R.mipmap.icon_livepk_no4); break; } } } else if (TextUtils.equals(userID, userID2)) { textGrade2.setText(String.valueOf(userScore)); if (!score.containsKey("paiming")) { - ImgLoader.display(mContext, R.mipmap.icon_livepk_no1, imageGrade2); + imageGrade2.setImageResource(R.mipmap.icon_livepk_no1); } else { int ranking = score.getIntValue("paiming"); switch (ranking) { case 1: - ImgLoader.display(mContext, R.mipmap.icon_livepk_no1, imageGrade2); + imageGrade2.setImageResource(R.mipmap.icon_livepk_no1); break; case 2: - ImgLoader.display(mContext, R.mipmap.icon_livepk_no2, imageGrade2); + imageGrade2.setImageResource(R.mipmap.icon_livepk_no2); break; case 3: - ImgLoader.display(mContext, R.mipmap.icon_livepk_no3, imageGrade2); + imageGrade2.setImageResource(R.mipmap.icon_livepk_no3); break; case 4: - ImgLoader.display(mContext, R.mipmap.icon_livepk_no4, imageGrade2); + imageGrade2.setImageResource(R.mipmap.icon_livepk_no4); break; } } } else if (TextUtils.equals(userID, userID4)) { textGrade4.setText(String.valueOf(userScore)); if (!score.containsKey("paiming")) { - ImgLoader.display(mContext, R.mipmap.icon_livepk_no1, imageGrade4); + imageGrade4.setImageResource(R.mipmap.icon_livepk_no1); } else { int ranking = score.getIntValue("paiming"); switch (ranking) { case 1: - ImgLoader.display(mContext, R.mipmap.icon_livepk_no1, imageGrade4); + imageGrade4.setImageResource(R.mipmap.icon_livepk_no1); break; case 2: - ImgLoader.display(mContext, R.mipmap.icon_livepk_no2, imageGrade4); + imageGrade4.setImageResource(R.mipmap.icon_livepk_no2); break; case 3: - ImgLoader.display(mContext, R.mipmap.icon_livepk_no3, imageGrade4); + imageGrade4.setImageResource(R.mipmap.icon_livepk_no3); break; case 4: - ImgLoader.display(mContext, R.mipmap.icon_livepk_no4, imageGrade4); + imageGrade4.setImageResource(R.mipmap.icon_livepk_no4); break; } } @@ -1822,84 +1822,84 @@ public class LiveSwLinkMicPkPresenter implements View.OnClickListener { if (TextUtils.equals(userID, userID1)) { textGrade1.setText(String.valueOf(userScore)); if (!score.containsKey("paiming")) { - ImgLoader.display(mContext, R.mipmap.icon_livepk_no1, imageGrade1); + imageGrade1.setImageResource(R.mipmap.icon_livepk_no1); } else { int ranking = score.getIntValue("paiming"); switch (ranking) { case 1: - ImgLoader.display(mContext, R.mipmap.icon_livepk_no1, imageGrade1); + imageGrade1.setImageResource(R.mipmap.icon_livepk_no1); break; case 2: - ImgLoader.display(mContext, R.mipmap.icon_livepk_no2, imageGrade1); + imageGrade1.setImageResource(R.mipmap.icon_livepk_no2); break; case 3: - ImgLoader.display(mContext, R.mipmap.icon_livepk_no3, imageGrade1); + imageGrade1.setImageResource(R.mipmap.icon_livepk_no3); break; case 4: - ImgLoader.display(mContext, R.mipmap.icon_livepk_no4, imageGrade1); + imageGrade1.setImageResource(R.mipmap.icon_livepk_no4); break; } } } else if (TextUtils.equals(userID, userID2)) { textGrade2.setText(String.valueOf(userScore)); if (!score.containsKey("paiming")) { - ImgLoader.display(mContext, R.mipmap.icon_livepk_no1, imageGrade2); + imageGrade2.setImageResource(R.mipmap.icon_livepk_no1); } else { int ranking = score.getIntValue("paiming"); switch (ranking) { case 1: - ImgLoader.display(mContext, R.mipmap.icon_livepk_no1, imageGrade2); + imageGrade2.setImageResource(R.mipmap.icon_livepk_no1); break; case 2: - ImgLoader.display(mContext, R.mipmap.icon_livepk_no2, imageGrade2); + imageGrade2.setImageResource(R.mipmap.icon_livepk_no2); break; case 3: - ImgLoader.display(mContext, R.mipmap.icon_livepk_no3, imageGrade2); + imageGrade2.setImageResource(R.mipmap.icon_livepk_no3); break; case 4: - ImgLoader.display(mContext, R.mipmap.icon_livepk_no4, imageGrade2); + imageGrade2.setImageResource(R.mipmap.icon_livepk_no4); break; } } } else if (TextUtils.equals(userID, userID4)) { textGrade4.setText(String.valueOf(userScore)); if (!score.containsKey("paiming")) { - ImgLoader.display(mContext, R.mipmap.icon_livepk_no1, imageGrade4); + imageGrade4.setImageResource(R.mipmap.icon_livepk_no1); } else { int ranking = score.getIntValue("paiming"); switch (ranking) { case 1: - ImgLoader.display(mContext, R.mipmap.icon_livepk_no1, imageGrade4); + imageGrade4.setImageResource(R.mipmap.icon_livepk_no1); break; case 2: - ImgLoader.display(mContext, R.mipmap.icon_livepk_no2, imageGrade4); + imageGrade4.setImageResource(R.mipmap.icon_livepk_no2); break; case 3: - ImgLoader.display(mContext, R.mipmap.icon_livepk_no3, imageGrade4); + imageGrade4.setImageResource(R.mipmap.icon_livepk_no3); break; case 4: - ImgLoader.display(mContext, R.mipmap.icon_livepk_no4, imageGrade4); + imageGrade4.setImageResource(R.mipmap.icon_livepk_no4); break; } } } else if (TextUtils.equals(userID, userID3)) { textGrade3.setText(String.valueOf(userScore)); if (!score.containsKey("paiming")) { - ImgLoader.display(mContext, R.mipmap.icon_livepk_no1, imageGrade3); + imageGrade3.setImageResource(R.mipmap.icon_livepk_no1); } else { int ranking = score.getIntValue("paiming"); switch (ranking) { case 1: - ImgLoader.display(mContext, R.mipmap.icon_livepk_no1, imageGrade3); + imageGrade3.setImageResource(R.mipmap.icon_livepk_no1); break; case 2: - ImgLoader.display(mContext, R.mipmap.icon_livepk_no2, imageGrade3); + imageGrade3.setImageResource(R.mipmap.icon_livepk_no2); break; case 3: - ImgLoader.display(mContext, R.mipmap.icon_livepk_no3, imageGrade3); + imageGrade3.setImageResource(R.mipmap.icon_livepk_no3); break; case 4: - ImgLoader.display(mContext, R.mipmap.icon_livepk_no4, imageGrade3); + imageGrade3.setImageResource(R.mipmap.icon_livepk_no4); break; } } @@ -1920,42 +1920,42 @@ public class LiveSwLinkMicPkPresenter implements View.OnClickListener { if (TextUtils.equals(userID, userID1)) { textGrade1.setText(String.valueOf(userScore)); if (!score.containsKey("paiming")) { - ImgLoader.display(mContext, R.mipmap.icon_livepk_no1, imageGrade1); + imageGrade1.setImageResource(R.mipmap.icon_livepk_no1); } else { int ranking = score.getIntValue("paiming"); switch (ranking) { case 1: - ImgLoader.display(mContext, R.mipmap.icon_livepk_no1, imageGrade1); + imageGrade1.setImageResource(R.mipmap.icon_livepk_no1); break; case 2: - ImgLoader.display(mContext, R.mipmap.icon_livepk_no2, imageGrade1); + imageGrade1.setImageResource(R.mipmap.icon_livepk_no2); break; case 3: - ImgLoader.display(mContext, R.mipmap.icon_livepk_no3, imageGrade1); + imageGrade1.setImageResource(R.mipmap.icon_livepk_no3); break; case 4: - ImgLoader.display(mContext, R.mipmap.icon_livepk_no4, imageGrade1); + imageGrade1.setImageResource(R.mipmap.icon_livepk_no4); break; } } } else if (TextUtils.equals(userID, userID2)) { textGrade2.setText(String.valueOf(userScore)); if (!score.containsKey("paiming")) { - ImgLoader.display(mContext, R.mipmap.icon_livepk_no1, imageGrade2); + imageGrade2.setImageResource(R.mipmap.icon_livepk_no1); } else { int ranking = score.getIntValue("paiming"); switch (ranking) { case 1: - ImgLoader.display(mContext, R.mipmap.icon_livepk_no1, imageGrade2); + imageGrade2.setImageResource(R.mipmap.icon_livepk_no1); break; case 2: - ImgLoader.display(mContext, R.mipmap.icon_livepk_no2, imageGrade2); + imageGrade2.setImageResource(R.mipmap.icon_livepk_no2); break; case 3: - ImgLoader.display(mContext, R.mipmap.icon_livepk_no3, imageGrade2); + imageGrade2.setImageResource(R.mipmap.icon_livepk_no3); break; case 4: - ImgLoader.display(mContext, R.mipmap.icon_livepk_no4, imageGrade2); + imageGrade2.setImageResource(R.mipmap.icon_livepk_no4); break; } }