update:榜单数据为空时展示空图片

update:根据设计图,隐藏“在线列表”title显示
This commit is contained in:
zlzw 2022-08-23 15:45:25 +08:00
parent 54716d9a92
commit b609fa44fd
2 changed files with 12 additions and 2 deletions

View File

@ -189,14 +189,14 @@ public class LiveUserMoreDialogFragment extends AbsDialogFragment implements Vie
Up();
type="dayRank";
mRefreshView.initData();
no_more.setImageBitmap(null);
no_more.setImageResource(R.drawable.img_rank_empty);
});
weekRank.setOnClickListener(View->{
Tips="5";
Up();
type="weekRank";
mRefreshView.initData();
no_more.setImageBitmap(null);
no_more.setImageResource(R.drawable.img_rank_empty);
});
mRefreshView = mRootView.findViewById(R.id.refreshView);
@ -303,6 +303,11 @@ public class LiveUserMoreDialogFragment extends AbsDialogFragment implements Vie
bean.setTotal(item.getLong("total"));
data.add(bean);
}
if(data.size()==0){
no_more.setVisibility(View.VISIBLE);
}else{
no_more.setVisibility(View.GONE);
}
mRefreshView.setNotLoadMore();
return data;
}
@ -328,6 +333,7 @@ public class LiveUserMoreDialogFragment extends AbsDialogFragment implements Vie
void Up() {
bottom_msg.setVisibility(View.VISIBLE);
title.setVisibility(View.GONE);
if (Tips.equals("1")) {
tags.setText("開通貴族,尊享超多特權!");
btn.setBackgroundResource(R.mipmap.btn_openvip);
@ -359,10 +365,14 @@ public class LiveUserMoreDialogFragment extends AbsDialogFragment implements Vie
bottom_msg.setVisibility(View.GONE);
type="dayRank";
setTextColor(dayRank,audience_btn,guard_btn,fans_btn,gz_view,weekRank);
gz_view.setVisibility(View.GONE);
no_more.setImageResource(R.drawable.img_rank_empty);
}else if (Tips.equals("5")){
userMoreInfoAdapter.type = "5";
bottom_msg.setVisibility(View.GONE);
type="weekRank";
gz_view.setVisibility(View.GONE);
no_more.setImageResource(R.drawable.img_rank_empty);
setTextColor(weekRank,audience_btn,guard_btn,fans_btn,gz_view,dayRank);
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 KiB