如何在通知托盘上显示多行推送通知消息

时间:2014-11-11 06:05:08

标签: android push-notification message multiline

我正在尝试在通知托盘上显示多行推送通知消息。我正在使用的代码是:

NotificationCompat.BigTextStyle bigTextStyle = new NotificationCompat.BigTextStyle();
bigTextStyle.setBigContentTitle("hello title");
bigTextStyle.bigText("hello this is big text to be shown on the tray of notification");
mBuilder.setStyle(bigTextStyle);

但这不起作用。如何显示多行通知消息?

0 个答案:

没有答案