From c949667b94bf74965401c4dfe83e7ef985d93d33 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Thu, 17 Nov 2022 17:32:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8E=92=E8=A1=8C=E6=A6=9C?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E4=BD=8D=E7=BD=AE=E6=97=B6=E4=BE=9D=E6=97=A7?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=92=BB=E7=9F=B3=E5=9B=BE=E6=A0=87=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/views/AbsMainListChildViewHolder.java | 7 +++++++ main/src/main/res/layout/activity_main_list.xml | 12 +++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/main/src/main/java/com/yunbao/main/views/AbsMainListChildViewHolder.java b/main/src/main/java/com/yunbao/main/views/AbsMainListChildViewHolder.java index f470d3819..6835d3247 100644 --- a/main/src/main/java/com/yunbao/main/views/AbsMainListChildViewHolder.java +++ b/main/src/main/java/com/yunbao/main/views/AbsMainListChildViewHolder.java @@ -203,6 +203,9 @@ public abstract class AbsMainListChildViewHolder extends AbsMainViewHolder imple ImageView mLevel1; ImageView mLevel2; ImageView mLevel3; + ImageView diamond1; + ImageView diamond2; + ImageView diamond3; MyRadioButton mBtnFollow1; MyRadioButton mBtnFollow2; MyRadioButton mBtnFollow3; @@ -232,6 +235,9 @@ public abstract class AbsMainListChildViewHolder extends AbsMainViewHolder imple mLevel1 = (ImageView) itemView.findViewById(R.id.level_1); mLevel2 = (ImageView) itemView.findViewById(R.id.level_2); mLevel3 = (ImageView) itemView.findViewById(R.id.level_3); + diamond1 = (ImageView) itemView.findViewById(R.id.diamond1); + diamond2 = (ImageView) itemView.findViewById(R.id.diamond2); + diamond3 = (ImageView) itemView.findViewById(R.id.diamond3); mBtnFollow1 = (MyRadioButton) itemView.findViewById(R.id.btn_follow_1); mBtnFollow2 = (MyRadioButton) itemView.findViewById(R.id.btn_follow_2); mBtnFollow3 = (MyRadioButton) itemView.findViewById(R.id.btn_follow_3); @@ -294,6 +300,7 @@ public abstract class AbsMainListChildViewHolder extends AbsMainViewHolder imple getItem(position, mBtnFollow1, mBtnFollow2, mBtnFollow3).setVisibility(View.INVISIBLE); } getItem(position, mVotes1, mVotes2, mVotes3).setText(bean.getTotalCoinFormat()); + getItem(position, diamond1, diamond2, diamond3).setVisibility(View.VISIBLE); if (bean.isHide()) { getItem(position, mName1, mName2, mName3).setText(R.string.mystery_man); ImgLoader.display(mContext, R.mipmap.hide, getItem(position, mAvatar1, mAvatar2, mAvatar3)); diff --git a/main/src/main/res/layout/activity_main_list.xml b/main/src/main/res/layout/activity_main_list.xml index 6a9041dba..d5ff6d106 100644 --- a/main/src/main/res/layout/activity_main_list.xml +++ b/main/src/main/res/layout/activity_main_list.xml @@ -127,9 +127,11 @@ + android:src="@mipmap/diamond" + android:visibility="invisible" /> + android:src="@mipmap/diamond" + android:visibility="invisible" /> + android:src="@mipmap/diamond" + android:visibility="invisible" />