I\'m the expanded notification.\nCollapse me!
I\'m the collapsed notification.\nCreated at: %s
Show Notification
I\'m a custom notification.
This sample demonstrates how a notification is created using the
NotificationCompatBuilder
with a custom content view. The layout of the notification is defined as a
layout resource and inflated as a RemoteViews object.
\n\nOn API level 16 and above, a different layout is inflated and set as
the big content view, which is used when the notification is expanded.
\n\nUse the button below to create the notification.
\n\nIf your device is running Jelly Bean or above, try expanding or collapsing
the notification to see the different layouts.
A single Android robot waving. Symbolises a collapsed
notification.
Two Androids on top of each other. Symbolises an expanded
notification.