# Notification card

<br />

Notification cards communicate small amounts of timely information from the system or from an app.

The design of these cards for Android Automotive OS is intended to minimize distraction for drivers. The cards come in three basic versions:

- **Heads-up notification (HUN) card:** Used for a notification that appears briefly over the current screen
- **Notification Center card:** Used for notifications listed in the Notification Center
- **Grouped-notification card:** Combines multiple Notification Center cards in one card

Within these versions, designs can also vary slightly depending on the category of the message. For example, call notifications have different buttons and icons than navigation notifications.
[![callout icon](https://developers.google.com/static/cars/design/common/images/default.svg)
Notification Center specs Specs, style guidelines, and more](https://developers.google.com/cars/design/gas-customization/specs/notification-center-spec)

*** ** * ** ***

## Anatomy

The notification card is a flexible component that can include a variety of elements. It has three main versions:

- **HUN card:** This version is wider than the Notification Center card and appears on top of the current screen until dismissed
- **Notification Center card:** This version is narrower than the HUN card and appears with other such cards in the Notification Center, in a vertical list
- **Grouped-notification card:** This version of the Notification Center card combines multiple related notifications in one card, with controls for expanding to show the individual notifications

Variants of these versions by message type are shown in [Styles](https://developers.google.com/cars/design/automotive-os/components/notification-card#styles).
![](https://developers.google.com/cars/design/automotive-os/components/images/notification-card-anatomy-hun-std.png) Shown here are HUN and Notification Center versions of the same notification card, featuring the following elements:  
1. Header  
2. Content (with and without optional message preview, which can be hidden when the car is driving)  
3. Actions  
4. Large icon ![](https://developers.google.com/cars/design/automotive-os/components/images/notification-card-anatomy-grouped.png) Shown here is a grouped-notification card in both its collapsed and expanded versions, featuring the following elements:  
1. Header  
2. Content  
3. Expand/collapse action  
4. Expand/collapse indicator

*** ** * ** ***

## Specs -- HUN card

[![callout icon](https://developers.google.com/static/cars/design/common/images/default.svg)
Layout labels Definitions of E, M, KL, P, Flex](https://developers.google.com/cars/design/intro-terms#layout_labels)

### Standard HUN

![](https://developers.google.com/cars/design/automotive-os/components/images/notification-card-specs-standard-hun.png)

### HUN with avatar

![](https://developers.google.com/cars/design/automotive-os/components/images/notification-card-specs-standard-hunwavatar.png)

### Message HUN with preview

![](https://developers.google.com/cars/design/automotive-os/components/images/notification-card-specs-hun-preview.png)

### Message HUN with multiple messages

![](https://developers.google.com/cars/design/automotive-os/components/images/notification-card-specs-hun-preview-multiple.png)

### Large-image HUN

![](https://developers.google.com/cars/design/automotive-os/components/images/notification-card-specs-hun-largeimg.png)

*** ** * ** ***

## Specs -- Notification Center card

[![callout icon](https://developers.google.com/static/cars/design/common/images/default.svg)
Layout labels Definitions of E, M, KL, P, Flex](https://developers.google.com/cars/design/intro-terms#layout_labels)

### Standard notification

![](https://developers.google.com/cars/design/automotive-os/components/images/standard-notification-card-avatar.png)

### Message notification with preview

![](https://developers.google.com/cars/design/automotive-os/components/images/standard-notification-card-msg-preview.png)

### Message notification with multiple messages

![](https://developers.google.com/cars/design/automotive-os/components/images/standard-notification-card-msg-preview-multi.png)

### Single action notification

![](https://developers.google.com/cars/design/automotive-os/components/images/standard-notification-card-onebutton.png)

*** ** * ** ***

## Specs -- Grouped-notification card

[![callout icon](https://developers.google.com/static/cars/design/common/images/default.svg)
Layout labels Definitions of E, M, KL, P, Flex](https://developers.google.com/cars/design/intro-terms#layout_labels)

### Grouped notification -- Collapsed

![](https://developers.google.com/cars/design/automotive-os/components/images/grpd-notifications-collapsed.png)

### Grouped notification -- Expanded

![](https://developers.google.com/cars/design/automotive-os/components/images/grpd-notifications-expanded.png)

*** ** * ** ***

## Scaling layouts

These reference layouts show how to adapt notifications to accommodate screens of various widths and heights. (Width and height categories are defined in the [Layout](https://developers.google.com/cars/design/automotive-os/design-system/layout) section.) Note that all pixel values are in rendered pixels, before any down-sampling or up-sampling occurs.
[![callout icon](https://developers.google.com/static/cars/design/common/images/default.svg)
Layout Margins, keylines, and padding for various screen sizes](https://developers.google.com/cars/design/automotive-os/design-system/layout) [![callout icon](https://developers.google.com/static/cars/design/common/images/default.svg)
Layout labels Definitions of E, M, KL, P, Flex](https://developers.google.com/cars/design/intro-terms#layout_labels)

### Standard-width screens

![](https://developers.google.com/cars/design/automotive-os/components/images/notification-hun-std.png) HUN card ![](https://developers.google.com/cars/design/automotive-os/components/images/notification-std-std.png) Notification Center card ![](https://developers.google.com/cars/design/automotive-os/components/images/notification-grp-collapsed-std.png) Grouped-notification card (collapsed) ![](https://developers.google.com/cars/design/automotive-os/components/images/notification-grp-std.png) Grouped-notification card (expanded)

### Wide screens

![](https://developers.google.com/cars/design/automotive-os/components/images/notification-hun-wide.png) HUN card ![](https://developers.google.com/cars/design/automotive-os/components/images/notification-std-wide.png) Notification Center card ![](https://developers.google.com/cars/design/automotive-os/components/images/notification-grp-collapsed-wide.png) Grouped-notification card (collapsed) ![](https://developers.google.com/cars/design/automotive-os/components/images/notification-grp-wide.png) Grouped-notification card (expanded)

### Extra-wide and super-wide screens

![](https://developers.google.com/cars/design/automotive-os/components/images/notification-hun-xwide.png) HUN card ![](https://developers.google.com/cars/design/automotive-os/components/images/notification-std-xwide.png) Notification Center card ![](https://developers.google.com/cars/design/automotive-os/components/images/notification-grp-collapsed-xwide.png) Grouped-notification card (collapsed) ![](https://developers.google.com/cars/design/automotive-os/components/images/notification-grp-xwide.png) Grouped-notification card (expanded)

### Vertical spacing of notifications on screens of various heights

The vertical-spacing specs in this section are for HUN cards only. For information about vertical spacing of cards in the Notification Center, see the [Notification Center specs](https://developers.google.com/cars/design/gas-customization/specs/notification-center-spec).

#### Short screens

![](https://developers.google.com/cars/design/automotive-os/components/images/notifications-hun-short.png) HUN card

#### Tall and standard-height screens

![](https://developers.google.com/cars/design/automotive-os/components/images/notifications-hun-stdtall.png) HUN card

*** ** * ** ***

## Styles

[![callout icon](https://developers.google.com/static/cars/design/common/images/default.svg)
Typography guidelines Scale and grid references, typographic examples, and more](https://developers.google.com/cars/design/automotive-os/design-system/typography) [![callout icon](https://developers.google.com/static/cars/design/common/images/default.svg)
Color guidelines Palettes, elevation and opacity values, and more](https://developers.google.com/cars/design/automotive-os/design-system/color)

### Typography

| Type style | Typeface | Weight | Size (dp) |
|---|---|---|---|
| Body 1 | Roboto | Regular | 32 |
| Body 3 M | Roboto | Medium | 24 |
| Body 3 | Roboto | Regular | 24 |

### Color

| Element | Color(day mode) | Color (night mode) |
|---|---|---|
| Primary type / icons | White | White @ 88% |
| Secondary type | White @ 72% | White @ 60% |
| Secondary icon | 3rd-party accent | 3rd-party accent |
| Divider hairline | White 22% | White 12% |
| Card background | Grey 868 | Grey 900 |
| Gradient Scrim | Black 100% - 0% | Black 100% - 20% |

### Sizing

| Element | Size (dp) |
|---|---|
| Primary icon | 44 |
| Secondary icon | 36 |
| Medium avatar | 76 |
| Rounded corner radius (R2) | 8 |

*** ** * ** ***

## Examples

![](https://developers.google.com/cars/design/automotive-os/components/images/notification-hun-examples.png) HUN cards: Call, Message, Car warning, and Navigation ![](https://developers.google.com/cars/design/automotive-os/components/images/notification-card-examples.png) Notification Center cards: Call, Message, and Car warning ![](https://developers.google.com/cars/design/automotive-os/components/images/notification-group-examples-messages-day.png) Grouped-notification cards: Messages, expanded and collapsed - day ![](https://developers.google.com/cars/design/automotive-os/components/images/notification-group-examples-messages-night.png) Grouped-notification cards: Messages, expanded and collapsed - night

*** ** * ** ***

## Motion

The following motions are an important part of the notification experience:

- HUN arrival motion
- Swipe motion for dismissing a notification
- Grouped-notification expand and collapse motions

### HUN arrival

![](https://developers.google.com/cars/design/automotive-os/components/images/notification-hud-auto-dismiss-new.gif) The motion of a HUN sliding down from the top of the screen helps users notice its arrival -- and it also provides a hint about accessing notifications via downward swipe if the Notification Center is implemented as a pull-down shade

### Swipe-to-dismiss

![](https://developers.google.com/cars/design/automotive-os/components/images/notification-appear-dismiss-new.gif) The dragging motion when a user swipes sideways on a notification provides visual confirmation that it is being dismissed, then the upward motion of the next notification fills in the hole in the list

### Grouped-notification expand and collapse

![](https://developers.google.com/cars/design/automotive-os/components/images/notification-expand-group-2.gif) Having a grouped-notification card stretch downward provides a smooth transition from the collapsed to the expanded state