修改守护列表页标签展示

This commit is contained in:
18401019693 2024-03-28 10:00:20 +08:00
parent f24744afe8
commit 285515345b
7 changed files with 25 additions and 4 deletions

View File

@ -57,9 +57,30 @@ public class NewGuardViewHolder extends RecyclerView.ViewHolder {
contribution.setText(guardUserModel.getContribute()); contribution.setText(guardUserModel.getContribute());
if (TextUtils.equals(guardUserModel.getGuardLevelCard(), "0")) { if (TextUtils.equals(guardUserModel.getGuardLevelCard(), "0")) {
ImgLoader.display(itemView.getContext(), guardUserModel.getGuardImg(), tagKing); switch (guardUserModel.getGuardType()) {
case 1:
ImgLoader.display(itemView.getContext(), R.mipmap.tag_start_hui, tagKing);
break;
case 2:
ImgLoader.display(itemView.getContext(), R.mipmap.tag_king_hui, tagKing);
break;
case 3:
ImgLoader.display(itemView.getContext(), R.mipmap.tag_god_hui, tagKing);
break;
}
} else { } else {
ImgLoader.display(itemView.getContext(), guardUserModel.getGuardImg(), tagKing); switch (guardUserModel.getGuardType()) {
case 1:
ImgLoader.display(itemView.getContext(), R.mipmap.tag_start, tagKing);
break;
case 2:
ImgLoader.display(itemView.getContext(), R.mipmap.tag_king, tagKing);
break;
case 3:
ImgLoader.display(itemView.getContext(), R.mipmap.tag_god, tagKing);
break;
}
} }
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB