
The user can double-tap the lock screen notification to unlock theĭevice and jump to the app that originated that notification, or swipe Notification in Android 5.0 and later, the small notification icon isĭisplayed as a badge over the large icon:īeginning with Android 5.0, notifications can also appear on the Optionally, notifications can display a large icon that represents theĪpplication or the sender's photo. Android creates this basic notification style by default. These elements are displayed as illustrated in the following diagram:īase layouts are limited to 64 density-independent pixels (dp) in The notification title, or the name of the sender if the

Notification type if the app supports different types of Base layoutĪll Android notifications are built on the base layout format, which,Īt a minimum, includes the following elements:Ī notification icon, which represents the originating app, or the These APIs will ensure maximum backwards compatibility to Android 4.0 (API level 14). This guide focuses on the NotificationCompat APIs from the Android support library. To a larger size to reveal more information.Įach of these layout types (and how to create them) is explained in the That corresponds to the notification area displayed above:Īndroid notifications use two types of layouts:īase layout – a compact, fixed presentation format.Įxpanded layout – a presentation format that can expand The following screenshot shows a notification drawer Notification content) and perform any actions associated with the Notification drawer (which expands each notification icon to reveal To obtain details about the notification, the user can open the The notification area, as shown in the following screenshot: Notification is first published, its icon is displayed in Notification icons and notification information to the user.

Local notifications overviewĪndroid provides two system-controlled areas for displaying It explains the various UI elements of an Android notification and discusses the API's involved with creating and displaying a notification.

This section shows how to implement local notifications in Xamarin.Android.
