测试系统:andriod 6.0
问题:通过builder.setContent(remoteViews);给通知添加自定义界面,结果由于自定义界面布局过高,底部界面被压缩显示
解决办法:
notification = builder.build();
notification.bigContentView = remoteViews;//通知栏通知
//notification.headsUpContentView = remoteViews;//悬挂通知
测试系统:andriod 6.0
问题:通过builder.setContent(remoteViews);给通知添加自定义界面,结果由于自定义界面布局过高,底部界面被压缩显示
解决办法:
notification = builder.build();
notification.bigContentView = remoteViews;//通知栏通知
//notification.headsUpContentView = remoteViews;//悬挂通知
本文标题:android自定义通知栏被压缩解决
本文链接:https://www.haomeiwen.com/subject/pqhvxqtx.html
网友评论