【发布时间】:2016-09-18 17:44:40
【问题描述】:
我正在使用以下代码来设置Bigcontentview。我不想要Contentview。我只想将Bigcontentview 显示为默认值
RemoteViews bigViews = new RemoteViews(getPackageName(),
R.layout.status_bar_expanded);
status = new Notification.Builder(this).build();
status.bigContentView = bigViews;
status.flags = Notification.FLAG_ONGOING_EVENT;
status.icon = R.drawable.ic_launcher;
status.contentIntent = pendingIntent;
startForeground(Constants.NOTIFICATION_ID.FOREGROUND_SERVICE, status);
是否可以通过任何方式将大内容视图设置为我的默认通知行为。
现在它显示一个空通知,当我展开时,它会展开完整通知。我怎样才能默认显示大内容视图通知?
【问题讨论】:
标签: java android notifications