添加主播消息空页面
This commit is contained in:
parent
16ba71493e
commit
824d431a63
@ -55,8 +55,16 @@ public class LiveAnchorMessageCustomPopup extends BottomPopupView {
|
||||
@Override
|
||||
public void onSuccess(List<ListInfoMessageModel> data) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(String error) {
|
||||
|
@ -17,5 +17,14 @@
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/live_message"
|
||||
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>
|
@ -9,9 +9,9 @@ ext {
|
||||
]
|
||||
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",
|
||||
|
Loading…
Reference in New Issue
Block a user