From 6b7a98dbc35211ac692fc4b4f52da6f576becf4d Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Thu, 6 Jul 2023 17:59:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D#220=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yunbao/main/adapter/MainListAdapter.java | 2 +- main/src/main/java/com/yunbao/main/bean/ListBean.java | 9 +++++++++ .../yunbao/main/views/AbsMainListChildViewHolder.java | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/main/src/main/java/com/yunbao/main/adapter/MainListAdapter.java b/main/src/main/java/com/yunbao/main/adapter/MainListAdapter.java index a05bb818f..c13a3a0b4 100644 --- a/main/src/main/java/com/yunbao/main/adapter/MainListAdapter.java +++ b/main/src/main/java/com/yunbao/main/adapter/MainListAdapter.java @@ -231,7 +231,7 @@ public class MainListAdapter extends RefreshAdapter { ImgLoader.display(mContext, R.mipmap.hide, mAvatar); mSex.setVisibility(View.GONE); } else { - ImgLoader.display(mContext, bean.getAvatarThumb(), mAvatar); + ImgLoader.display(mContext, bean.getAvatar(), mAvatar); mName.setText(bean.getUserNiceName()); mSex.setVisibility(View.VISIBLE); } diff --git a/main/src/main/java/com/yunbao/main/bean/ListBean.java b/main/src/main/java/com/yunbao/main/bean/ListBean.java index 6e4882719..2e074d7a1 100644 --- a/main/src/main/java/com/yunbao/main/bean/ListBean.java +++ b/main/src/main/java/com/yunbao/main/bean/ListBean.java @@ -13,6 +13,7 @@ public class ListBean { private String uid; private String userNiceName; private String avatarThumb; + private String avatar; private int sex; private int levelAnchor; private int level; @@ -128,6 +129,14 @@ public class ListBean { public void setSex(int sex) { this.sex = sex; } + @JSONField(name = "avatar") + public String getAvatar() { + return avatar; + } + @JSONField(name = "avatar") + public void setAvatar(String avatar) { + this.avatar = avatar; + } @Override public String toString() { 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 bbcb5b2cd..d3173e328 100644 --- a/main/src/main/java/com/yunbao/main/views/AbsMainListChildViewHolder.java +++ b/main/src/main/java/com/yunbao/main/views/AbsMainListChildViewHolder.java @@ -374,7 +374,7 @@ public abstract class AbsMainListChildViewHolder extends AbsMainViewHolder imple setVisibility(View.INVISIBLE, position, mBtnFollow1, mBtnFollow2, mBtnFollow3); } else { - ImgLoader.display(mContext, bean.getAvatarThumb(), getItem(position, mAvatar1, mAvatar2, mAvatar3)); + ImgLoader.display(mContext, bean.getAvatar(), getItem(position, mAvatar1, mAvatar2, mAvatar3)); getItem(position, mName1, mName2, mName3).setText(bean.getUserNiceName()); getItem(position, mSex1, mSex2, mSex3).setVisibility(View.VISIBLE);