添加主播消息空页面
This commit is contained in:
parent
16ba71493e
commit
824d431a63
@ -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) {
|
||||||
|
@ -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>
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user