public static class NotificationCompat.InboxStyle extends NotificationCompat.Style
Notification noti = new Notification.Builder() .setContentTitle("5 New mails from " + sender.toString()) .setContentText(subject) .setSmallIcon(R.drawable.new_mail) .setLargeIcon(aBitmap) .setStyle(new Notification.InboxStyle() .addLine(str1) .addLine(str2) .setContentTitle("") .setSummaryText("+3 more")) .build();
Notification.bigContentView
Constructor and Description |
---|
InboxStyle() |
InboxStyle(NotificationCompat.Builder builder) |
Modifier and Type | Method and Description |
---|---|
NotificationCompat.InboxStyle |
addLine(CharSequence cs)
Append a line to the digest section of the Inbox notification.
|
NotificationCompat.InboxStyle |
setBigContentTitle(CharSequence title)
Overrides ContentTitle in the big form of the template.
|
NotificationCompat.InboxStyle |
setSummaryText(CharSequence cs)
Set the first line of text after the detail section in the big form of the template.
|
addCompatExtras, build, restoreFromCompatExtras, setBuilder
public InboxStyle()
public InboxStyle(NotificationCompat.Builder builder)
public NotificationCompat.InboxStyle setBigContentTitle(CharSequence title)
public NotificationCompat.InboxStyle setSummaryText(CharSequence cs)
public NotificationCompat.InboxStyle addLine(CharSequence cs)