111
This commit is contained in:
@@ -45,11 +45,7 @@ public abstract class HttpCallback extends AbsCallback<JsonBean> {
|
||||
//token过期,重新登录
|
||||
RouteUtil.forwardLoginInvalid(data.getMsg());
|
||||
} else {
|
||||
if(data.getInfo().length==0){
|
||||
onSuccess(data.getCode(), data.getMsg(), new String[]{data.getData()});
|
||||
}else {
|
||||
onSuccess(data.getCode(), data.getMsg(), data.getInfo());
|
||||
}
|
||||
onSuccess(data.getCode(), data.getMsg(), data.getInfo());
|
||||
}
|
||||
} else {
|
||||
L.e("服务器返回值异常--->ret: " + bean.getRet() + " msg: " + bean.getMsg());
|
||||
|
||||
53
common/src/main/res/layout/notification_message.xml
Normal file
53
common/src/main/res/layout/notification_message.xml
Normal file
@@ -0,0 +1,53 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="80dp"
|
||||
android:gravity="center">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="15dp"
|
||||
android:layout_marginRight="60dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:src="@mipmap/ic_launcher"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="25dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="15sp"
|
||||
android:textColor="@color/yellow4"
|
||||
android:text="我开播了!"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="15sp"
|
||||
android:layout_marginTop="5dp"
|
||||
android:textColor="@color/gray3"
|
||||
android:text="说好的,你今天来看我直播!"/>
|
||||
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginRight="15dp"
|
||||
android:textColor="@color/gray3"
|
||||
android:layout_alignParentRight="true"
|
||||
android:text="PD LIVE"/>
|
||||
</RelativeLayout>
|
||||
Reference in New Issue
Block a user