自定义通知栏时,您将使用“RemoteView”自定义布局,并且不会显示通知栏
理由:
根宽度和高度设置问题,dimes中大小的relativelayoutxmlns 3360 Android=' http://schemas.Android.com/apk/RES/安卓' xmlns 3360 tools=' http://scools=' 3358 tools '安卓: layout _ width=' @ dimen/_ 250 px '安卓: layous 。 /RelativeLayout解决方案,按宽高写死或用match_parent写死wrap _ contentrelativelayoutxmlns 3360 Android=' http://schemas.Android 安卓' xmlns 3360 tools=' 3360 tools '安卓: layout _ width=' 666 px安卓: layout _ height=' 666 px '。 /RelativeLayout