修改守护列表页标签展示
This commit is contained in:
parent
f24744afe8
commit
285515345b
@ -56,10 +56,31 @@ public class NewGuardViewHolder extends RecyclerView.ViewHolder {
|
||||
|
||||
contribution.setText(guardUserModel.getContribute());
|
||||
|
||||
if (TextUtils.equals(guardUserModel.getGuardLevelCard(),"0")){
|
||||
ImgLoader.display(itemView.getContext(), guardUserModel.getGuardImg(), tagKing);
|
||||
}else {
|
||||
ImgLoader.display(itemView.getContext(), guardUserModel.getGuardImg(), tagKing);
|
||||
if (TextUtils.equals(guardUserModel.getGuardLevelCard(), "0")) {
|
||||
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 {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
BIN
live/src/main/res/mipmap-xxxhdpi/tag_god.png
Normal file
BIN
live/src/main/res/mipmap-xxxhdpi/tag_god.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
BIN
live/src/main/res/mipmap-xxxhdpi/tag_god_hui.png
Normal file
BIN
live/src/main/res/mipmap-xxxhdpi/tag_god_hui.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.6 KiB |
BIN
live/src/main/res/mipmap-xxxhdpi/tag_king.png
Normal file
BIN
live/src/main/res/mipmap-xxxhdpi/tag_king.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
BIN
live/src/main/res/mipmap-xxxhdpi/tag_king_hui.png
Normal file
BIN
live/src/main/res/mipmap-xxxhdpi/tag_king_hui.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.3 KiB |
BIN
live/src/main/res/mipmap-xxxhdpi/tag_start.png
Normal file
BIN
live/src/main/res/mipmap-xxxhdpi/tag_start.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
BIN
live/src/main/res/mipmap-xxxhdpi/tag_start_hui.png
Normal file
BIN
live/src/main/res/mipmap-xxxhdpi/tag_start_hui.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.3 KiB |
Loading…
Reference in New Issue
Block a user