diff --git a/live/src/main/java/com/yunbao/live/dialog/LiveUserMoreDialogFragment.java b/live/src/main/java/com/yunbao/live/dialog/LiveUserMoreDialogFragment.java index c0426498e..eea5cf065 100644 --- a/live/src/main/java/com/yunbao/live/dialog/LiveUserMoreDialogFragment.java +++ b/live/src/main/java/com/yunbao/live/dialog/LiveUserMoreDialogFragment.java @@ -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); } } diff --git a/live/src/main/res/drawable/img_rank_empty.png b/live/src/main/res/drawable/img_rank_empty.png new file mode 100644 index 000000000..c7798341d Binary files /dev/null and b/live/src/main/res/drawable/img_rank_empty.png differ