修改榜单神秘人
This commit is contained in:
parent
66290323d8
commit
f064864d76
@ -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",
|
||||||
|
@ -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);
|
||||||
@ -337,10 +340,10 @@ public abstract class AbsMainListChildViewHolder extends AbsMainViewHolder imple
|
|||||||
if (bean.getAttention() != 1) {
|
if (bean.getAttention() != 1) {
|
||||||
getItem(position, mBtnFollow1, mBtnFollow2, mBtnFollow3).doChecked(true);
|
getItem(position, mBtnFollow1, mBtnFollow2, mBtnFollow3).doChecked(true);
|
||||||
getItem(position, mBtnFollow1, mBtnFollow2, mBtnFollow3).setText("+" + mContext.getString(R.string.follow));
|
getItem(position, mBtnFollow1, mBtnFollow2, mBtnFollow3).setText("+" + mContext.getString(R.string.follow));
|
||||||
if (isRankOne==0) {
|
if (isRankOne == 0) {
|
||||||
getItem(position, mBtnFollow1, mBtnFollow2, mBtnFollow3).setBackgroundResource(R.drawable.background_ffff79c2);
|
getItem(position, mBtnFollow1, mBtnFollow2, mBtnFollow3).setBackgroundResource(R.drawable.background_ffff79c2);
|
||||||
getItem(position, mBtnFollow1, mBtnFollow2, mBtnFollow3).setTextColor(Color.parseColor("#FFFFFF"));
|
getItem(position, mBtnFollow1, mBtnFollow2, mBtnFollow3).setTextColor(Color.parseColor("#FFFFFF"));
|
||||||
} else if (isRankOne==1){
|
} else if (isRankOne == 1) {
|
||||||
getItem(position, mBtnFollow1, mBtnFollow2, mBtnFollow3).setBackgroundResource(R.drawable.background_7bbaff);
|
getItem(position, mBtnFollow1, mBtnFollow2, mBtnFollow3).setBackgroundResource(R.drawable.background_7bbaff);
|
||||||
getItem(position, mBtnFollow1, mBtnFollow2, mBtnFollow3).setTextColor(Color.parseColor("#FFFFFF"));
|
getItem(position, mBtnFollow1, mBtnFollow2, mBtnFollow3).setTextColor(Color.parseColor("#FFFFFF"));
|
||||||
} else if (isRankOne == 2) {
|
} else if (isRankOne == 2) {
|
||||||
@ -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());
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user