调整在线列表-守护-空列表时的图片显示

This commit is contained in:
zlzw 2022-11-25 14:55:56 +08:00
parent f0231be306
commit 6bd29ec63e
3 changed files with 11 additions and 8 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

View File

@ -168,10 +168,10 @@ public class LiveUserMoreDialogFragment extends AbsDialogFragment implements Vie
@Override @Override
public void onClick(View view) { public void onClick(View view) {
Tips = "2"; Tips = "2";
no_more.setImageResource(R.mipmap.grayicon);
Up(); Up();
type = "guard"; type = "guard";
mRefreshView.initData(); mRefreshView.initData();
no_more.setImageResource(R.mipmap.grayicon);
} }
}); });
fans_btn = mRootView.findViewById(R.id.fans_btn); fans_btn = mRootView.findViewById(R.id.fans_btn);
@ -179,25 +179,25 @@ public class LiveUserMoreDialogFragment extends AbsDialogFragment implements Vie
@Override @Override
public void onClick(View view) { public void onClick(View view) {
Tips = "3"; Tips = "3";
no_more.setImageResource(R.mipmap.bixin);
Up(); Up();
type = "fans"; type = "fans";
mRefreshView.initData(); mRefreshView.initData();
no_more.setImageResource(R.mipmap.bixin);
} }
}); });
dayRank.setOnClickListener(View -> { dayRank.setOnClickListener(View -> {
Tips = "4"; Tips = "4";
no_more.setImageResource(R.drawable.img_rank_empty);
Up(); Up();
type = "dayRank"; type = "dayRank";
mRefreshView.initData(); mRefreshView.initData();
no_more.setImageResource(R.drawable.img_rank_empty);
}); });
weekRank.setOnClickListener(View -> { weekRank.setOnClickListener(View -> {
Tips = "5"; Tips = "5";
no_more.setImageResource(R.drawable.img_rank_empty);
Up(); Up();
type = "weekRank"; type = "weekRank";
mRefreshView.initData(); mRefreshView.initData();
no_more.setImageResource(R.drawable.img_rank_empty);
}); });
mRefreshView = mRootView.findViewById(R.id.refreshView); mRefreshView = mRootView.findViewById(R.id.refreshView);
@ -388,7 +388,9 @@ public class LiveUserMoreDialogFragment extends AbsDialogFragment implements Vie
setTextColor(guard_btn, audience_btn, fans_btn, dayRank, weekRank); setTextColor(guard_btn, audience_btn, fans_btn, dayRank, weekRank);
gz_view.setVisibility(View.GONE); gz_view.setVisibility(View.GONE);
userMoreInfoAdapter.type = "2"; userMoreInfoAdapter.type = "2";
no_more.setImageResource(R.mipmap.grayicon); no_more.setImageResource(R.mipmap.ic_guard_not);
noMoreText.setText("主播正在等待您成為TA的守護\n為TA保駕護航");
noMoreText.setVisibility(View.VISIBLE);
type = "guard"; type = "guard";
} else if (Tips.equals("3")) { } else if (Tips.equals("3")) {
tags.setText("快加入您喜歡的主播粉絲團吧"); tags.setText("快加入您喜歡的主播粉絲團吧");

View File

@ -114,8 +114,8 @@
<ImageView <ImageView
android:id="@+id/no_more" android:id="@+id/no_more"
android:layout_width="233dp" android:layout_width="233dp"
android:layout_height="233dp" android:layout_height="200dp"
android:layout_marginBottom="32dp" android:layout_marginBottom="16dp"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
@ -125,9 +125,10 @@
android:id="@+id/no_more_text" android:id="@+id/no_more_text"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center"
android:textColor="#B3FFFFFF" android:textColor="#B3FFFFFF"
android:textSize="14sp" android:textSize="14sp"
android:visibility="gone" android:visibility="visible"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/no_more" /> app:layout_constraintTop_toBottomOf="@+id/no_more" />