update:榜单数据为空时展示空图片
update:根据设计图,隐藏“在线列表”title显示
This commit is contained in:
parent
54716d9a92
commit
b609fa44fd
@ -189,14 +189,14 @@ public class LiveUserMoreDialogFragment extends AbsDialogFragment implements Vie
|
|||||||
Up();
|
Up();
|
||||||
type="dayRank";
|
type="dayRank";
|
||||||
mRefreshView.initData();
|
mRefreshView.initData();
|
||||||
no_more.setImageBitmap(null);
|
no_more.setImageResource(R.drawable.img_rank_empty);
|
||||||
});
|
});
|
||||||
weekRank.setOnClickListener(View->{
|
weekRank.setOnClickListener(View->{
|
||||||
Tips="5";
|
Tips="5";
|
||||||
Up();
|
Up();
|
||||||
type="weekRank";
|
type="weekRank";
|
||||||
mRefreshView.initData();
|
mRefreshView.initData();
|
||||||
no_more.setImageBitmap(null);
|
no_more.setImageResource(R.drawable.img_rank_empty);
|
||||||
});
|
});
|
||||||
|
|
||||||
mRefreshView = mRootView.findViewById(R.id.refreshView);
|
mRefreshView = mRootView.findViewById(R.id.refreshView);
|
||||||
@ -303,6 +303,11 @@ public class LiveUserMoreDialogFragment extends AbsDialogFragment implements Vie
|
|||||||
bean.setTotal(item.getLong("total"));
|
bean.setTotal(item.getLong("total"));
|
||||||
data.add(bean);
|
data.add(bean);
|
||||||
}
|
}
|
||||||
|
if(data.size()==0){
|
||||||
|
no_more.setVisibility(View.VISIBLE);
|
||||||
|
}else{
|
||||||
|
no_more.setVisibility(View.GONE);
|
||||||
|
}
|
||||||
mRefreshView.setNotLoadMore();
|
mRefreshView.setNotLoadMore();
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
@ -328,6 +333,7 @@ public class LiveUserMoreDialogFragment extends AbsDialogFragment implements Vie
|
|||||||
|
|
||||||
void Up() {
|
void Up() {
|
||||||
bottom_msg.setVisibility(View.VISIBLE);
|
bottom_msg.setVisibility(View.VISIBLE);
|
||||||
|
title.setVisibility(View.GONE);
|
||||||
if (Tips.equals("1")) {
|
if (Tips.equals("1")) {
|
||||||
tags.setText("開通貴族,尊享超多特權!");
|
tags.setText("開通貴族,尊享超多特權!");
|
||||||
btn.setBackgroundResource(R.mipmap.btn_openvip);
|
btn.setBackgroundResource(R.mipmap.btn_openvip);
|
||||||
@ -359,10 +365,14 @@ public class LiveUserMoreDialogFragment extends AbsDialogFragment implements Vie
|
|||||||
bottom_msg.setVisibility(View.GONE);
|
bottom_msg.setVisibility(View.GONE);
|
||||||
type="dayRank";
|
type="dayRank";
|
||||||
setTextColor(dayRank,audience_btn,guard_btn,fans_btn,gz_view,weekRank);
|
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")){
|
}else if (Tips.equals("5")){
|
||||||
userMoreInfoAdapter.type = "5";
|
userMoreInfoAdapter.type = "5";
|
||||||
bottom_msg.setVisibility(View.GONE);
|
bottom_msg.setVisibility(View.GONE);
|
||||||
type="weekRank";
|
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);
|
setTextColor(weekRank,audience_btn,guard_btn,fans_btn,gz_view,dayRank);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
BIN
live/src/main/res/drawable/img_rank_empty.png
Normal file
BIN
live/src/main/res/drawable/img_rank_empty.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 206 KiB |
Loading…
Reference in New Issue
Block a user