Notifications — Part1 : Styling
Britt Barak

Do you know if the android screenshot notification on O is custom?

The large icon fades out as you expand the notification to reveal the big picture.

Edit: found it! It’s a combination of setting the large icon, and using the BigPicture style to set the `bigLargeIcon(null)` since they refer to the same space but the former is in collapsed mode and latter in expanded.

Notification notification = new NotificationCompat.Builder(MyActivity.this, DEFAULT_CHANNEL_ID)
.setContentTitle("This is the content title")
.setContentText("This is the content text")
new NotificationCompat.BigPictureStyle()
.bigLargeIcon(null) // this bit!
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.