修改榜单神秘人

This commit is contained in:
18401019693 2023-05-27 15:17:31 +08:00
parent 66290323d8
commit f064864d76
4 changed files with 15 additions and 11 deletions

View File

@ -9,9 +9,9 @@ ext {
] ]
manifestPlaceholders = [ manifestPlaceholders = [
// //
// serverHost : "https://napi.yaoulive.com", serverHost : "https://napi.yaoulive.com",
// //
serverHost : "https://ceshi.yaoulive.com", // serverHost : "https://ceshi.yaoulive.com",
// //
txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB", txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB",

View File

@ -91,11 +91,14 @@ public abstract class AbsMainListChildViewHolder extends AbsMainViewHolder imple
public void onData(List<ListBean> list, List<String> outRankHide) { public void onData(List<ListBean> list, List<String> outRankHide) {
for (int i = 0; i < list.size(); i++) { for (int i = 0; i < list.size(); i++) {
if (outRankHide != null) { if (outRankHide != null) {
for (String hideId : outRankHide) {
if (i < 3) {
hv.setData(list.get(i).setHide(TextUtils.equals(list.get(i).getUid(), hideId)), i); if (i < 3 && outRankHide.contains(list.get(i).getUid())) {
} hv.setData(list.get(i).setHide(true), i);
} else if (i < 3) {
hv.setData(list.get(i).setHide(false), i);
} }
} else { } else {
if (i < 3) { if (i < 3) {
hv.setData(list.get(i), i); hv.setData(list.get(i), i);
@ -357,7 +360,8 @@ public abstract class AbsMainListChildViewHolder extends AbsMainViewHolder imple
getItem(position, mName1, mName2, mName3).setText(R.string.mystery_man); getItem(position, mName1, mName2, mName3).setText(R.string.mystery_man);
ImgLoader.display(mContext, R.mipmap.hide, getItem(position, mAvatar1, mAvatar2, mAvatar3)); ImgLoader.display(mContext, R.mipmap.hide, getItem(position, mAvatar1, mAvatar2, mAvatar3));
getItem(position, mSex1, mSex2, mSex3).setVisibility(View.GONE); getItem(position, mSex1, mSex2, mSex3).setVisibility(View.GONE);
getItem(position, mVotes1, mVotes2, mVotes3).setVisibility(View.GONE); setVisibility(View.GONE, position, svga1, svga2, svga3);
setVisibility(View.GONE, position, mBtnFollow1, mBtnFollow2, mBtnFollow3);
} else { } else {
ImgLoader.display(mContext, bean.getAvatarThumb(), getItem(position, mAvatar1, mAvatar2, mAvatar3)); ImgLoader.display(mContext, bean.getAvatarThumb(), getItem(position, mAvatar1, mAvatar2, mAvatar3));
getItem(position, mName1, mName2, mName3).setText(bean.getUserNiceName()); getItem(position, mName1, mName2, mName3).setText(bean.getUserNiceName());

View File

@ -27,7 +27,7 @@ public class MainListContributeViewHolder extends AbsMainListChildViewHolder {
public MainListContributeViewHolder(Context context, ViewGroup parentView) { public MainListContributeViewHolder(Context context, ViewGroup parentView) {
super(context, parentView); super(context, parentView);
isRankOne = 2; isRankOne = 1;
} }
@Override @Override

View File

@ -24,7 +24,7 @@ public class MainListProfitViewHolder extends AbsMainListChildViewHolder {
public MainListProfitViewHolder(Context context, ViewGroup parentView) { public MainListProfitViewHolder(Context context, ViewGroup parentView) {
super(context, parentView); super(context, parentView);
isRankOne = 1; isRankOne = 0;
} }
@Override @Override