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" />