添加主播消息空页面

This commit is contained in:
18401019693 2023-02-28 13:06:48 +08:00
parent 16ba71493e
commit 824d431a63
3 changed files with 21 additions and 4 deletions

View File

@ -55,8 +55,16 @@ public class LiveAnchorMessageCustomPopup extends BottomPopupView {
@Override @Override
public void onSuccess(List<ListInfoMessageModel> data) { public void onSuccess(List<ListInfoMessageModel> data) {
size = data.size(); size = data.size();
if (page == 1 && size == 0) {
liveMessage.setVisibility(GONE);
findViewById(R.id.img_no_new).setVisibility(VISIBLE);
} else {
findViewById(R.id.img_no_new).setVisibility(GONE);
liveMessage.setVisibility(VISIBLE);
adapter.addData(data); adapter.addData(data);
} }
}
@Override @Override
public void onError(String error) { public void onError(String error) {

View File

@ -17,5 +17,14 @@
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:id="@+id/live_message" android:id="@+id/live_message"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" /> android:layout_height="match_parent"
android:visibility="gone" />
<ImageView
android:id="@+id/img_no_new"
android:layout_width="200dp"
android:layout_height="200dp"
android:layout_gravity="center"
android:layout_marginTop="50dp"
android:src="@mipmap/img_no_new" />
</LinearLayout> </LinearLayout>

View File

@ -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",