修改榜单头像框问题

This commit is contained in:
18401019693 2023-06-01 15:39:24 +08:00
parent 9486a1a572
commit a67c2b4009

View File

@ -316,7 +316,12 @@ public abstract class AbsMainListChildViewHolder extends AbsMainViewHolder imple
SVGADrawable drawable = new SVGADrawable(videoItem);
getItem(position, svga1, svga2, svga3).setImageDrawable(drawable);
SVGAViewUtils.playEndClear(getItem(position, svga1, svga2, svga3), false);
setVisibility(View.VISIBLE, position, svga1, svga2, svga3);
if (bean.isHide()) {
setVisibility(View.GONE, position, svga1, svga2, svga3);
} else {
setVisibility(View.VISIBLE, position, svga1, svga2, svga3);
}
}
@Override
@ -361,13 +366,13 @@ public abstract class AbsMainListChildViewHolder extends AbsMainViewHolder imple
getItem(position, mName1, mName2, mName3).setText(R.string.mystery_man);
ImgLoader.display(mContext, R.mipmap.hide, getItem(position, mAvatar1, mAvatar2, mAvatar3));
getItem(position, mSex1, mSex2, mSex3).setVisibility(View.GONE);
setVisibility(View.GONE, position, svga1, svga2, svga3);
setVisibility(View.GONE, position, mBtnFollow1, mBtnFollow2, mBtnFollow3);
} else {
ImgLoader.display(mContext, bean.getAvatarThumb(), getItem(position, mAvatar1, mAvatar2, mAvatar3));
getItem(position, mName1, mName2, mName3).setText(bean.getUserNiceName());
getItem(position, mSex1, mSex2, mSex3).setVisibility(View.VISIBLE);
getItem(position, svga1, svga2, svga3).setVisibility(View.VISIBLE);
}
getItem(position, mSex1, mSex2, mSex3).setImageResource(CommonIconUtil.getSexIcon(bean.getSex()));
setVisibility(View.INVISIBLE, position, mSex1, mSex2, mSex3);