public static class NotificationCompat.BigTextStyle extends NotificationCompat.Style
Notification notif = new Notification.Builder(mContext) .setContentTitle("New mail from " + sender.toString()) .setContentText(subject) .setSmallIcon(R.drawable.new_mail) .setLargeIcon(aBitmap) .setStyle(new Notification.BigTextStyle() .bigText(aVeryLongString)) .build();
Notification.bigContentView
Constructor and Description |
---|
BigTextStyle() |
BigTextStyle(NotificationCompat.Builder builder) |
Modifier and Type | Method and Description |
---|---|
NotificationCompat.BigTextStyle |
bigText(CharSequence cs)
Provide the longer text to be displayed in the big form of the
template in place of the content text.
|
NotificationCompat.BigTextStyle |
setBigContentTitle(CharSequence title)
Overrides ContentTitle in the big form of the template.
|
NotificationCompat.BigTextStyle |
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 BigTextStyle()
public BigTextStyle(NotificationCompat.Builder builder)
public NotificationCompat.BigTextStyle setBigContentTitle(CharSequence title)
public NotificationCompat.BigTextStyle setSummaryText(CharSequence cs)
public NotificationCompat.BigTextStyle bigText(CharSequence cs)