修复#220问题
This commit is contained in:
parent
640dea5c53
commit
6b7a98dbc3
@ -231,7 +231,7 @@ public class MainListAdapter extends RefreshAdapter<ListBean> {
|
|||||||
ImgLoader.display(mContext, R.mipmap.hide, mAvatar);
|
ImgLoader.display(mContext, R.mipmap.hide, mAvatar);
|
||||||
mSex.setVisibility(View.GONE);
|
mSex.setVisibility(View.GONE);
|
||||||
} else {
|
} else {
|
||||||
ImgLoader.display(mContext, bean.getAvatarThumb(), mAvatar);
|
ImgLoader.display(mContext, bean.getAvatar(), mAvatar);
|
||||||
mName.setText(bean.getUserNiceName());
|
mName.setText(bean.getUserNiceName());
|
||||||
mSex.setVisibility(View.VISIBLE);
|
mSex.setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,7 @@ public class ListBean {
|
|||||||
private String uid;
|
private String uid;
|
||||||
private String userNiceName;
|
private String userNiceName;
|
||||||
private String avatarThumb;
|
private String avatarThumb;
|
||||||
|
private String avatar;
|
||||||
private int sex;
|
private int sex;
|
||||||
private int levelAnchor;
|
private int levelAnchor;
|
||||||
private int level;
|
private int level;
|
||||||
@ -128,6 +129,14 @@ public class ListBean {
|
|||||||
public void setSex(int sex) {
|
public void setSex(int sex) {
|
||||||
this.sex = sex;
|
this.sex = sex;
|
||||||
}
|
}
|
||||||
|
@JSONField(name = "avatar")
|
||||||
|
public String getAvatar() {
|
||||||
|
return avatar;
|
||||||
|
}
|
||||||
|
@JSONField(name = "avatar")
|
||||||
|
public void setAvatar(String avatar) {
|
||||||
|
this.avatar = avatar;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
|
@ -374,7 +374,7 @@ public abstract class AbsMainListChildViewHolder extends AbsMainViewHolder imple
|
|||||||
|
|
||||||
setVisibility(View.INVISIBLE, position, mBtnFollow1, mBtnFollow2, mBtnFollow3);
|
setVisibility(View.INVISIBLE, position, mBtnFollow1, mBtnFollow2, mBtnFollow3);
|
||||||
} else {
|
} 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, mName1, mName2, mName3).setText(bean.getUserNiceName());
|
||||||
getItem(position, mSex1, mSex2, mSex3).setVisibility(View.VISIBLE);
|
getItem(position, mSex1, mSex2, mSex3).setVisibility(View.VISIBLE);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user