From 9bb0869926c23a94b38bbe467b2833737076821f Mon Sep 17 00:00:00 2001 From: Dirk Dougherty Date: Wed, 27 Jul 2016 09:46:35 -0700 Subject: [PATCH] Doc change: remove notifications guidelines page and redirect to material spec. Bug-Id: 28768849 Change-Id: I8f73a3023ae7648cf89d2e31f0cf055195da2bd7 --- docs/html/_redirects.yaml | 2 + docs/html/about/versions/android-5.0-changes.jd | 4 +- docs/html/design/_book.yaml | 17 - docs/html/design/design_toc.cs | 9 - docs/html/design/handhelds/index.jd | 3 +- docs/html/design/patterns/new.jd | 4 +- docs/html/design/patterns/notifications.jd | 895 --------------------- docs/html/design/wear/style.jd | 2 +- docs/html/distribute/engage/notifications.jd | 2 +- .../distribute/essentials/optimizing-your-app.jd | 2 +- docs/html/distribute/essentials/quality/core.jd | 2 +- docs/html/distribute/essentials/quality/wear.jd | 2 +- docs/html/distribute/stories/apps/aftenposten.jd | 2 +- .../guide/topics/ui/notifiers/notifications.jd | 8 +- docs/html/images/cards/card-notifications_2x.png | Bin 0 -> 4355 bytes docs/html/jd_collections.js | 7 +- docs/html/jd_extras_en.js | 20 +- docs/html/training/gestures/index.jd | 2 +- .../training/notify-user/build-notification.jd | 2 +- docs/html/training/notify-user/display-progress.jd | 2 +- docs/html/training/notify-user/expanded.jd | 2 +- docs/html/training/notify-user/index.jd | 4 +- docs/html/training/notify-user/managing.jd | 2 +- docs/html/training/notify-user/navigation.jd | 2 +- 24 files changed, 45 insertions(+), 952 deletions(-) delete mode 100644 docs/html/design/patterns/notifications.jd create mode 100644 docs/html/images/cards/card-notifications_2x.png diff --git a/docs/html/_redirects.yaml b/docs/html/_redirects.yaml index 9fbc08d46cd4..8e6ab42ef7c0 100644 --- a/docs/html/_redirects.yaml +++ b/docs/html/_redirects.yaml @@ -321,6 +321,8 @@ redirects: to: https://www.google.com/design/spec/layout/principles.html - from: /design/patterns/navigation-drawer.html to: https://www.google.com/design/spec/patterns/navigation-drawer.html +- from: /design/patterns/notifications.html + to: https://material.google.com/patterns/notifications.html - from: /design/patterns/selection.html to: https://www.google.com/design/spec/patterns/selection.html - from: /design/patterns/settings.html diff --git a/docs/html/about/versions/android-5.0-changes.jd b/docs/html/about/versions/android-5.0-changes.jd index 25d253fb8d2f..0e9dac502432 100644 --- a/docs/html/about/versions/android-5.0-changes.jd +++ b/docs/html/about/versions/android-5.0-changes.jd @@ -105,7 +105,9 @@ Behavior on the Android Runtime (ART). Pay particular attention if:

Make sure your notifications take these Android 5.0 changes into account. To learn more about designing your notifications for Android 5.0 and higher, - see the notifications design guide. + see the notifications + design guide.

Material design style

diff --git a/docs/html/design/_book.yaml b/docs/html/design/_book.yaml index df5406f269dd..18b47194265f 100644 --- a/docs/html/design/_book.yaml +++ b/docs/html/design/_book.yaml @@ -90,23 +90,6 @@ toc: value: 使用返回和向上导航 - name: zh-tw-lang value: 使用 [返回] 及 [上一層] 導覽 - - title: Notifications - path: /design/patterns/notifications.html - path_attributes: - - name: es-lang - value: Notificaciones - - name: ja-lang - value: 通知 - - name: ko-lang - value: 알림 - - name: pt-br-lang - value: Notificações - - name: ru-lang - value: Уведомления - - name: zh-cn-lang - value: 通知 - - name: zh-tw-lang - value: 通知 - title: Widgets path: /design/patterns/widgets.html - title: Swipe Views diff --git a/docs/html/design/design_toc.cs b/docs/html/design/design_toc.cs index a837a04ffb8b..c1f3c3bda00b 100644 --- a/docs/html/design/design_toc.cs +++ b/docs/html/design/design_toc.cs @@ -70,15 +70,6 @@ zh-tw-lang="使用 [返回] 及 [上一層] 導覽"> Navigation -
  • - Notifications
  • Widgets
  • Swipe Views
  • Full Screen
  • diff --git a/docs/html/design/handhelds/index.jd b/docs/html/design/handhelds/index.jd index 4a4526cb21b8..cf224aeb6484 100755 --- a/docs/html/design/handhelds/index.jd +++ b/docs/html/design/handhelds/index.jd @@ -92,7 +92,8 @@ to allow the user to enjoy full screen content without distraction.

    Notifications are brief messages that users can access at any time from the status bar. They provide updates, reminders, or information that's important, but not critical enough to warrant interrupting the user. Open the notifications drawer by swiping down on the status bar. Touching a -notification opens the associated app. More on Notifications

    +notification opens the associated app. More on Notifications

    diff --git a/docs/html/design/patterns/new.jd b/docs/html/design/patterns/new.jd index df4c2ede187e..4bd3aa3ad02f 100755 --- a/docs/html/design/patterns/new.jd +++ b/docs/html/design/patterns/new.jd @@ -18,7 +18,7 @@ implement material design patterns in your apps.

    Notifications

    -

    Notifications receive important +

    Notifications receive important updates in Android 5.0, with material design visual changes, notification availability in the lockscreen, priority notifications, and cloud-synced notifications.

    @@ -124,7 +124,7 @@ lockscreen, priority notifications, and cloud-synced notifications.

    The base notification layout has not changed, so app notifications designed for versions earlier than Jelly Bean still look and work the same. Check the updated Notifications page for + href="https://material.google.com/patterns/notifications.html">Notifications page for more details.

    diff --git a/docs/html/design/patterns/notifications.jd b/docs/html/design/patterns/notifications.jd deleted file mode 100644 index 844c3b6b95f3..000000000000 --- a/docs/html/design/patterns/notifications.jd +++ /dev/null @@ -1,895 +0,0 @@ -page.title=Notifications -page.tags="notifications","design" -@jd:body - - -
    -

    Developer Docs

    -

    Notifying the User

    -
    -
    - - -
    -

    Notifications in Android 4.4 and Lower

    -
    -
    - - - -
    -

    Video

    -

    DevBytes: Notifications in the Android L Developer Preview

    -
    -
    - - - -

    The notification system allows users to keep informed about relevant and -timely -events in your app, such as new chat messages from a friend or a calendar event. -Think of notifications as a news channel that alerts the user to important -events as -they happen or a log that chronicles events while the user is not paying -attention—and one that is synced as appropriate across all their Android devices.

    - -

    New in Android 5.0

    - -

    In Android 5.0, notifications receive important updates: structurally, -visually, and functionally:

    - -
      -
    • Notifications have undergone visual changes consistent with the new -material design theme.
    • -
    • Notifications are now available on the device lock screen, while -sensitive content can still - be hidden behind it.
    • -
    • High-priority notifications received while the device is in use now use a new format called - heads-up notifications.
    • -
    • Cloud-synced notifications: Dismissing a notification on one of your -Android devices dismisses it - on the others, as well.
    • -
    - -

    Note: Notification design in this version of -Android is a significant -departure from that of previous versions. For information about notification design in previous -versions, see Notifications in Android 4.4 and lower.

    - -

    Anatomy of a Notification

    - -

    This section goes over basic parts of a notification and how they can -appear on different types of devices.

    - -

    Base layout

    - -

    At a minimum, all notifications consist of a base layout, including:

    - -
      -
    • The notification's icon. The icon symbolizes the -originating app. It may also - potentially indicate notification type if the app generates more than one -type.
    • -
    • A notification title and additional -text.
    • -
    • A timestamp.
    • -
    - -

    Notifications created with {@link android.app.Notification.Builder Notification.Builder} -for previous platform versions look and work the same in Android -5.0, with only minor stylistic changes that the system handles -for you. For more information about notifications on previous versions of -Android, see -Notifications in Android 4.4 and lower.

    - - - - - -
    -

    - Base layout of a handheld notification (left) and the same notification on Wear (right), - with a user photo and a notification icon -

    -
    - -

    Expanded layouts

    - - -

    You can choose how much detail your app's notifications should -provide. They can show the first -few lines of a message or show a larger image preview. The additional -information provides the user with more -context, and—in some cases—may allow the user to read a message in its -entirety. The user can -pinch-zoom or perform a single-finger glide to toggle between compact -and expanded layouts. - For single-event notifications, Android provides three expanded layout -templates (text, inbox, and - image) for you to use in your application. The following images show you how -single-event notifications look on - handhelds (left) and wearables (right).

    - - - - - -

    Actions

    - -

    Android supports optional actions that are displayed at the bottom -of the notification. -With actions, users can handle the most common tasks for a particular -notification from within the notification shade without having to open the -originating application. -This speeds up interaction and, in conjunction with swipe-to-dismiss, helps users focus on -notifications that matter to them.

    - - - - - - -

    Be judicious with how many actions you include with a -notification. The more -actions you include, the more cognitive complexity you create. Limit yourself -to the smallest number -of actions possible by only including the most imminently important and -meaningful actions.

    - -

    Good candidates for actions on notifications are actions that:

    - -
      -
    • Are essential, frequent, and typical for the content type you're -displaying -
    • Allow the user to accomplish tasks quickly -
    - -

    Avoid actions that are:

    - -
      -
    • Ambiguous -
    • The same as the default action of the notification (such as "Read" or -"Open") -
    - - - -

    You can specify a maximum of three actions, each consisting of an action -icon and name. - Adding actions to a simple base layout makes the notification expandable, -even if the - notification doesn't have an expanded layout. Since actions are only shown for -expanded - notifications and are otherwise hidden, make sure that any action a -user can invoke from - a notification is available from within the associated application, as -well.

    - -

    Heads-up Notification

    -
    - -

    - Example of a heads-up notification (incoming phone call, high priority) -appearing on top of an - immersive app -

    -
    - -

    When a high-priority notification arrives (see right), it is presented -to users for a -short period of time with an expanded layout exposing possible actions.

    -

    After this period of time, the notification retreats to the notification -shade. If a notification's priority is -flagged as High, Max, or full-screen, it gets a heads-up notification.

    - -

    Good examples of heads-up notifications

    - -
      -
    • Incoming phone call when using a device
    • -
    • Alarm when using a device
    • -
    • New SMS message
    • -
    • Low battery
    • -
    - -

    Guidelines

    - - -

    Make it personal

    - -

    For notifications of items sent by another person (such as a message or -status update), include that person's image using -{@link android.app.Notification.Builder#setLargeIcon setLargeIcon()}. Also attach information about -the person to the notification's metadata (see {@link android.app.Notification#EXTRA_PEOPLE}).

    - -

    Your notification's main icon is still shown, so the user can associate -it with the icon -visible in the status bar.

    - - - -

    - Notification that shows the person who triggered it and the content they sent. -

    - - - - -

    When the user touches the body of a notification (outside of the action -buttons), open your app -to the place where the user can view and act upon the data referenced in the -notification. In most cases, this will be the detailed view of a single data item such as a message, -but it might also be a -summary view if the notification is stacked. If your app takes the -user anywhere below your app's top level, insert navigation into your app's back stack so that the -user can press the system back button to return to the top level. For more information, see -Navigation into Your App via Home Screen Widgets and Notifications in the Navigation -design pattern.

    - -

    Correctly set and -manage notification -priority

    - -

    Android supports a priority flag for notifications. This flag allows you to -influence where your notification appears, relative to other notifications, and -helps ensure -that users always see their most important notifications first. You can choose -from the -following priority levels when posting a notification:

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    -

    Priority

    -
    -

    Use

    -
    -

    MAX

    -
    -

    Use for critical and urgent notifications that alert the user to a condition -that is -time-critical or needs to be resolved before they can continue with a -particular task.

    -
    -

    HIGH

    -
    -

    Use primarily for important communication, such as message or chat -events with content that is particularly interesting for the user. -High-priority notifications trigger the heads-up notification display.

    -
    -

    DEFAULT

    -
    -

    Use for all notifications that don't fall into any of the other priorities described here.

    -
    -

    LOW

    -
    -

    Use for notifications that you want the user to be informed about, but -that are less urgent. Low-priority notifications tend to show up at the bottom of the list, -which makes them a good -choice for things like public or undirected social updates: The user has asked to -be notified about -them, but these notifications should never take precedence over urgent or direct -communication.

    -
    -

    MIN

    -
    -

    Use for contextual or background information such as weather information or contextual -location information. -Minimum-priority notifications do not appear in the status bar. The user -discovers them on expanding the notification shade.

    -
    - - -

    How to choose an -appropriate -priority

    - -

    DEFAULT, HIGH, and MAX are interruptive priority levels, and risk -interrupting the user -in mid-activity. To avoid annoying your app's users, reserve interruptive priority levels for -notifications that:

    - -
      -
    • Involve another person
    • -
    • Are time-sensitive
    • -
    • Might immediately change the user's behavior in the real world
    • -
    - -

    Notifications set to LOW and MIN can still be -valuable for the user: Many, if not most, notifications just don't need to command the user's -immediate attention, or vibrate the user's wrist, yet contain information that the user will find -valuable when they choose to -look for notifications. Criteria for LOW and MIN -priority notifications include:

    - -
      -
    • Don't involve other people
    • -
    • Aren't time sensitive
    • -
    • Contain content the user might be interested in but could choose to -browse at their leisure
    • -
    - - - - - -

    Set a notification -category

    - -

    If your notification falls into one of the predefined categories (see -below), assign it -accordingly. Aspects of the system UI such as the notification shade (or any -other notification -listener) may use this information to make ranking and filtering decisions.

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -

    CATEGORY_CALL

    -
    -

    Incoming call (voice or video) or similar synchronous communication -request

    -
    -

    CATEGORY_MESSAGE

    -
    -

    Incoming direct message (SMS, instant message, etc.)

    -
    -

    CATEGORY_EMAIL

    -
    -

    Asynchronous bulk message (email)

    -
    -

    CATEGORY_EVENT

    -
    -

    Calendar event

    -
    -

    CATEGORY_PROMO

    -
    -

    Promotion or advertisement

    -
    -

    CATEGORY_ALARM

    -
    -

    Alarm or timer

    -
    -

    CATEGORY_PROGRESS

    -
    -

    Progress of a long-running background operation

    -
    -

    CATEGORY_SOCIAL

    -
    -

    Social network or sharing update

    -
    -

    CATEGORY_ERROR

    -
    -

    Error in background operation or authentication status

    -
    -

    CATEGORY_TRANSPORT

    -
    -

    Media transport control for playback

    -
    -

    CATEGORY_SYSTEM

    -
    -

    System or device status update. Reserved for system use.

    -
    -

    CATEGORY_SERVICE

    -
    -

    Indication of running background service

    -
    -

    CATEGORY_RECOMMENDATION

    -
    -

    A specific, timely recommendation for a single thing. For example, a news -app might want to -recommend a news story it believes the user will want to read next.

    -
    -

    CATEGORY_STATUS

    -
    -

    Ongoing information about device or contextual status

    -
    - -

    Summarize your notifications

    - -

    If a notification of a certain type is already pending when your app tries to send a new -notification of the same type, combine them into a single summary notification for the app. Do not -create a new object.

    - -

    A summary notification builds a summary description and allows the user to -understand how many -notifications of a particular kind are pending.

    - -
    - -

    Don't

    - -
    - -
    -

    Do

    - - -
    - -

    You can provide -more detail about the individual notifications that make up a - summary by using the expanded digest layout. This approach allows users to gain a -better sense of which - notifications are pending and if they are interesting enough to read in -detail within the - associated app.

    -
    - -

    - Expanded and contracted notification that is a summary (using InboxStyle) -

    -
    - -

    Make notifications -optional

    - -

    Users should always be in control of notifications. Allow the user to -disable your app's -notifications or change their alert properties, such as alert sound and whether -to use vibration, -by adding a notification settings item to your application settings.

    - -

    Use distinct icons

    -

    By glancing at the notification area, the user should be able to discern -what kinds of -notifications are currently pending.

    - -
    - -
    - -

    Do

    -

    Look at the notification icons Android apps already provide and create -notification icons for - your app that are sufficiently distinct in appearance.

    - -

    Do

    -

    Use the proper notification icon style - for small icons, and the Material Light - action bar icon -style for your action - icons.

    -

    Do

    -

    Keep your icons visually simple, avoiding excessive detail that is hard to -discern.

    - -

    Don't

    -

    Place any additional alpha (dimming or fading) into your -small icons and action - icons; they can have anti-aliased edges, but because Android uses these -icons as masks (that is, only - the alpha channel is used), the image should generally be drawn at full -opacity.

    - -
    -

    Don't

    - -

    Use color to distinguish your app from others. Notification icons should -only be a white-on-transparent background image.

    - - -

    Pulse the notification LED -appropriately

    - -

    Many Android devices contain a notification LED, which is used to keep the -user informed about -events while the screen is off. Notifications with a priority level of MAX, -HIGH, or DEFAULT should -cause the LED to glow, while those with lower priority (LOW and -MIN) should not.

    - -

    The user's control over notifications should extend to the LED. When you use -DEFAULT_LIGHTS, the -LED will glow white. Your notifications shouldn't use a different -color unless the -user has explicitly customized it.

    - -

    Building Notifications -That Users Care About

    - -

    To create an app that users love, it is important to design your -notifications carefully. -Notifications embody your app's voice, and contribute to your app's -personality. Unwanted or -unimportant notifications can annoy the user or make them resent how much -attention the app wants -from them, so use notifications judiciously.

    - -

    When to display a notification

    - -

    To create an application that people enjoy using, it's important to -recognize that the user's -attention and focus is a resource that must be protected. While Android's -notification system has -been designed to minimize the impact of notifications on the user's attention, -it is -still important to be aware of the fact that notifications are interrupting the -user's task flow. -As you plan your notifications, ask yourself if they are important enough to -warrant an interruption. If you are unsure, allow the user to opt into a -notification using your apps notification settings, or adjust -the notifications priority flag to LOW or MIN to -avoid distracting the user while they are doing -something else.

    - - -

    - Examples of time-sensitive notification -

    - -

    While well-behaved apps generally only speak when spoken to, a few cases -do merit an app's interrupting the user with an unprompted notification.

    - -

    Use notifications primarily for time-sensitive events, especially - if these synchronous events involve other people. For -instance, an incoming chat - is a real-time and synchronous form of communication: Another user -actively waiting on your response. Calendar events are another good example of when to use a -notification and grab the - user's attention, because the event is imminent, and calendar events often -involve other people.

    - -

    When not to -display a notification

    - -
    - -
    - -

    In many other cases, notifications aren't appropriate:

    - -
      -
    • Avoid notifying the user of information that is not directed -specifically at them, or - information that is not truly time-sensitive. For instance, the asynchronous -and undirected updates - flowing through a social network generally do not warrant a real-time -interruption. For the users - who do care about them, allow them to opt-in.
    • -
    • Don't create a notification if the relevant new information is currently -on screen. Instead, - use the UI of the application itself to notify the user of new information -directly in context. - For instance, a chat application should not create system notifications while -the user is actively chatting with another user.
    • -
    • Don't interrupt the user for low-level technical operations, like saving -or syncing information, or updating an application if the app or system can resolve the issue -without involving the user.
    • -
    • Don't interrupt the user to inform them of an error if it is possible -for the application to recover from the error on its own without the user -taking any action.
    • -
    • Don't create notifications that have no true notification content and -merely advertise your - app. A notification should provide useful, timely, new information and should -not be used - merely to launch an app.
    • -
    • Don't create superfluous notifications just to get your brand in front -of users. - Such notifications frustrate and likely alienate your audience. The -best way to provide - small amounts of updated information and keep them engaged -with your - app is to develop a widget that they can choose to place on their -home screen.
    • -
    - -

    Interacting with -Notifications

    - -

    Notifications are indicated by icons in the status bar, and can be accessed -by opening the -notification drawer.

    - -

    Touching a notification opens the associated app to detailed content -that matches the notification. -Swiping left or right on a notification removes it from the drawer.

    - -

    Ongoing notifications

    -
    - -

    - Ongoing notification due to music playback -

    -
    -

    Ongoing notifications keep users informed about an ongoing process in the -background. -For example, music players announce the currently playing track in the -notification system and -continue to do so until the user stops the playback. Ongoing notifications can also -show the user -feedback for longer tasks like downloading a file, or encoding a video. A user cannot manually -remove an ongoing notification from the notification drawer.

    - -

    Media playback

    -

    In Android 5.0, the lock screen doesn't show transport controls for the deprecated -{@link android.media.RemoteControlClient} class. But it does show notifications, so each -app's playback notification is now the primary -way for users to control playback from a locked state. This behavior gives apps more -control over which -buttons to show, and in what way, while providing a consistent experience for -the user whether or not the screen is locked.

    - -

    Dialogs -and toasts

    - -

    Your app should not create a dialog or toast if it is not currently on -screen. A dialog or toast - should only be displayed as an immediate response to the user taking an action -inside of your app. -For further guidance on the use of dialogs and toasts, refer to -Confirming & Acknowledging.

    - -

    Ranking and ordering

    - -

    Notifications are news, and so are essentially shown in -reverse-chronological order, with -special consideration given to the app's stated notification -priority.

    - -

    Notifications are a key part of the lock screen, and are featured prominently -every -time the device display comes on. Space on the lock screen is tight, so it -is more important -than ever to identify the most urgent or relevant notifications. For this -reason, Android has a -more sophisticated sorting algorithm for notifications, taking into account:

    - -
      -
    • The timestamp and application's stated priority.
    • -
    • Whether the notification has recently disturbed the user with sound or -vibration. (That is, - if the phone just made a noise, and the user wants to know "What just -happened?", the lock screen - should answer that at a glance.)
    • -
    • Any people attached to the notification using {@link android.app.Notification#EXTRA_PEOPLE}, - and, in particular, whether they are starred contacts.
    • -
    - -

    To best take advantage of this sorting, focus on the user -experience you want -to create, rather than aiming for any particular spot on the list.

    - - - -

    Gmail notifications are -default priority, so they - normally sort below messages from an instant messaging app like Hangouts, but -get a - temporary bump when new messages come in. -

    - - -

    On the lock screen

    - -

    Because notifications are visible on the lock screen, user privacy is an -especially -important consideration. Notifications often contain sensitive information, and -should not necessarily be visible -to anyone who picks up the device and turns on the display.

    - -
      -
    • For devices that have a secure lock screen (PIN, pattern, or password), the interface has - public and private parts. The public interface can be displayed on a secure lock screen and - therefore seen by anyone. The private interface is the world behind that lock screen, and - is only revealed once the user has signed into the device.
    • -
    - -

    User control over information displayed on the secure lock screen

    -
    - -

    - Notifications on the lock screen, with contents revealed after the user unlocks the device. -

    -
    - -

    When setting up a secure lock screen, the user can choose to conceal -sensitive details from the secure lock screen. In this case the System UI -considers the notification's visibility level to figure out what can -safely be shown.

    -

    To control the visibility level, call -Notification.Builder.setVisibility(), -and specify one of these values:

    - -
      -
    • VISIBILITY_PUBLIC. -Shows the notification's full content. - This is the system default if visibility is left unspecified.
    • -
    • VISIBILITY_PRIVATE. -On the lock screen, shows basic information about the existence of this notification, including its -icon and the name of the app that posted it. The rest of the notification's details are not displayed. -A couple of good points to keep in mind are as follows: -
        -
      • If you want to provide a different public version of your notification -for the system to display on a secure lock screen, supply a replacement -Notification object in the Notification.publicVersion -field. -
      • This setting gives your app an opportunity to create a redacted version of the -content that is still useful but does not reveal personal information. Consider the example of an -SMS app whose notifications include the text of the SMS and the sender's name and contact icon. -This notification should be VISIBILITY_PRIVATE, but publicVersion could still -contain useful information like "3 new messages" without any other identifying -details. -
      -
    • -
    • Notification.VISIBILITY_SECRET. Shows only the most minimal information, excluding -even the notification's icon.
    • -
    -

    Notifications on -Android Wear

    - -

    Notifications and their actions are bridged over to Wear devices by default. -Developers can control which notifications bridge from the -phone to the watch, -and vice-versa. Developers can also control which actions bridge, as well. If -your app includes -actions that can't be accomplished with a single tap, either hide these actions -on your Wear -notification or consider hooking them up to a Wear app, thus allowing the user to -finish the action on -their watch.

    - -

    Bridging notifications and actions

    - -

    A connected device, such as a phone, can bridge notifications to a Wear device, so that the -notifications are displayed there. Similarly, it can bridge actions, so that the user can act -on the notifications right from the Wear device.

    - -

    Bridge

    - -
      -
    • New instant messages
    • -
    • Single-tap actions such as +1, Like, Heart
    • -
    - - - -

    Don't bridge

    - -
      -
    • Notifications of newly arrived podcasts
    • -
    • Actions that map to features that aren't possible on the watch
    • -
    - - - -

    Unique actions to define for Wear

    - -

    There are some actions that you can perform only on Wear. These include the following:

    - -
      -
    • Quick lists of canned responses such as "Be right back"
    • -
    • Open on the phone
    • -
    • A "Comment" or "Reply" action that brings up the speech input screen
    • -
    • Actions that launch Wear-specific apps
    • -
    - - diff --git a/docs/html/design/wear/style.jd b/docs/html/design/wear/style.jd index 75bd65f76317..804223fdf867 100644 --- a/docs/html/design/wear/style.jd +++ b/docs/html/design/wear/style.jd @@ -67,7 +67,7 @@ href="{@docRoot}design/wear/patterns.html#Continuing">Continuing activities on p

    Keep Notifications to a Minimum

    -

    Don’t abuse the user’s attention. Active notifications (that is, those that cause the device to vibrate) should only be used in cases that are both timely and involve a contact, for example receiving a message from a friend. Non-urgent notifications should be silently added to the Context Stream. See also the general Android Notifications Guidelines.

    +

    Don’t abuse the user’s attention. Active notifications (that is, those that cause the device to vibrate) should only be used in cases that are both timely and involve a contact, for example receiving a message from a friend. Non-urgent notifications should be silently added to the Context Stream. See also the general Android Notifications Guidelines.

    diff --git a/docs/html/distribute/engage/notifications.jd b/docs/html/distribute/engage/notifications.jd index c38f649a25a0..a37d703ccb62 100644 --- a/docs/html/distribute/engage/notifications.jd +++ b/docs/html/distribute/engage/notifications.jd @@ -10,7 +10,7 @@ page.image=/design/media/notifications_pattern_anatomy.png

    - The notification system + The notification system allows your app to keep the user informed about events, such as new messages, upcoming calendar appointments, shared photos, and much more. They are a fundamental feature of Android that consumers check frequently to receive diff --git a/docs/html/distribute/essentials/optimizing-your-app.jd b/docs/html/distribute/essentials/optimizing-your-app.jd index 09c52d4ca2b9..d09a1a88d51a 100644 --- a/docs/html/distribute/essentials/optimizing-your-app.jd +++ b/docs/html/distribute/essentials/optimizing-your-app.jd @@ -475,7 +475,7 @@ who can help automate, measure, and optimize your mobile marketing. A great way to deliver a delightful user experience is to integrate tightly with the operating system. Features like Home screen widgets, - rich + rich notifications, global search integration, and Quick diff --git a/docs/html/distribute/essentials/quality/core.jd b/docs/html/distribute/essentials/quality/core.jd index 637eaac56ce4..3499f230fa05 100644 --- a/docs/html/distribute/essentials/quality/core.jd +++ b/docs/html/distribute/essentials/quality/core.jd @@ -186,7 +186,7 @@ page.image=/distribute/images/core-quality-guidelines.jpg

    Notifications follow Android Design guidelines. In + "https://material.google.com/patterns/notifications.html">guidelines. In particular:

    diff --git a/docs/html/distribute/essentials/quality/wear.jd b/docs/html/distribute/essentials/quality/wear.jd index fc1c73f65154..34c6cc566a90 100644 --- a/docs/html/distribute/essentials/quality/wear.jd +++ b/docs/html/distribute/essentials/quality/wear.jd @@ -18,7 +18,7 @@ page.image=/distribute/images/gp-wear-quality.png Core App Quality
  • Optimize Your App
  • -
  • +
  • Notifications
  • diff --git a/docs/html/distribute/stories/apps/aftenposten.jd b/docs/html/distribute/stories/apps/aftenposten.jd index f1f388e2b6bd..149e6bbe5a4a 100644 --- a/docs/html/distribute/stories/apps/aftenposten.jd +++ b/docs/html/distribute/stories/apps/aftenposten.jd @@ -74,7 +74,7 @@ page.timestamp=1468270114

    Find out more about best practices for Notifications and Notifications and Building Apps with Content Sharing.

    diff --git a/docs/html/guide/topics/ui/notifiers/notifications.jd b/docs/html/guide/topics/ui/notifiers/notifications.jd index 8c7e0864a2d9..7212f93c3726 100644 --- a/docs/html/guide/topics/ui/notifiers/notifications.jd +++ b/docs/html/guide/topics/ui/notifiers/notifications.jd @@ -60,7 +60,7 @@ page.title=Notifications

    See also

    1. - Android Design: Notifications + Material Design: Notifications
    @@ -97,7 +97,7 @@ The class {@link android.app.Notification.Builder Notification.Builder} was adde The material design changes introduced in Android 5.0 (API level 21) are of particular importance, and you should review the Material Design training for more information. To learn how to design notifications and their interactions, -read the Notifications design guide.

    +read the Notifications design guide.

    Creating a Notification

    @@ -184,7 +184,7 @@ notification, you pass the {@link android.app.Notification} object to the system

    For information about setting an appropriate priority level, see "Correctly set and manage notification priority" in the Notifications Design + href="https://material.google.com/patterns/notifications.html">Notifications Design guide.

    @@ -323,7 +323,7 @@ mBuilder.setStyle(inBoxStyle); For example, Gmail notifies the user that new emails have arrived by increasing its count of unread messages and by adding a summary of each email to the notification. This is called "stacking" the notification; it's described in more detail in the - Notifications Design guide. + Notifications Design guide.

    Note: This Gmail feature requires the "inbox" expanded layout, which is part diff --git a/docs/html/images/cards/card-notifications_2x.png b/docs/html/images/cards/card-notifications_2x.png new file mode 100644 index 0000000000000000000000000000000000000000..e56c1df344194016a993d1f261de1fd3a1ea2e95 GIT binary patch literal 4355 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 literal 0 HcmV?d00001 diff --git a/docs/html/jd_collections.js b/docs/html/jd_collections.js index 03efa86ffaaa..3ceddf2c756d 100644 --- a/docs/html/jd_collections.js +++ b/docs/html/jd_collections.js @@ -857,8 +857,7 @@ var RESOURCE_COLLECTIONS = { "design/index.html", "design/patterns/navigation.html", "design/patterns/actionbar.html", - "design/style/iconography.html", - "design/patterns/notifications.html" + "design/style/iconography.html" ] }, "distribute/essentials/corequalityguidelines/functionality": { @@ -1076,7 +1075,6 @@ var RESOURCE_COLLECTIONS = { "distribute/getusers/notifications": { "title": "", "resources": [ - "design/patterns/notifications.html", "distribute/engage/gcm.html", "https://play.google.com/about/developer-content-policy.html" ] @@ -1181,8 +1179,7 @@ var RESOURCE_COLLECTIONS = { "resources": [ "distribute/essentials/optimizing-your-app.html", "distribute/tools/launch-checklist.html", - "distribute/googleplay/developer-console.html", - "design/patterns/notifications.html" + "distribute/googleplay/developer-console.html" ] }, "distribute/engage/video/more": { diff --git a/docs/html/jd_extras_en.js b/docs/html/jd_extras_en.js index 5c4227781de2..ef94cc415a5a 100644 --- a/docs/html/jd_extras_en.js +++ b/docs/html/jd_extras_en.js @@ -2655,6 +2655,19 @@ METADATA['en'].extras = METADATA['en'].extras.concat([ "lang": "en", "group": "", "tags": [], + "url": "https://material.google.com/patterns/notifications.html", + "timestamp": "1469639720", + "image": "images/cards/card-notifications_2x.png", + "title": "Notifications", + "summary": "Notifications inform your app’s users about relevant and timely events in your app.", + "keywords": ["notifications", "design"], + "type": "design", + "category": "material design" + }, + { + "lang": "en", + "group": "", + "tags": [], "url": "https://www.google.com/design/spec/usability/", "timestamp": null, "image": "images/cards/material-usability_2x.png", @@ -2733,7 +2746,6 @@ METADATA['en'].extras = METADATA['en'].extras.concat([ "type": "design", "category": "material design" }, - { "lang": "en", "group": "", @@ -4672,7 +4684,7 @@ METADATA['en'].collections = { "design/patterns/navigation.html", "design/patterns/actionbar.html", "design/style/iconography.html", - "design/patterns/notifications.html" + "https://material.google.com/patterns/notifications.html" ] }, "distribute/essentials/corequalityguidelines/functionality": { @@ -4869,7 +4881,7 @@ METADATA['en'].collections = { "distribute/getusers/notifications": { "title": "", "resources": [ - "design/patterns/notifications.html", + "https://material.google.com/patterns/notifications.html", "distribute/engage/gcm.html", "https://play.google.com/about/developer-content-policy.html" ] @@ -4985,7 +4997,7 @@ METADATA['en'].collections = { "distribute/essentials/optimizing-your-app.html", "distribute/tools/launch-checklist.html", "distribute/googleplay/developer-console.html", - "design/patterns/notifications.html" + "https://material.google.com/patterns/notifications.html" ] }, "distribute/engage/video/more": { diff --git a/docs/html/training/gestures/index.jd b/docs/html/training/gestures/index.jd index fad1afafbbe9..1b8f4c120a20 100644 --- a/docs/html/training/gestures/index.jd +++ b/docs/html/training/gestures/index.jd @@ -48,7 +48,7 @@ interaction to your app can greatly increase its usefulness and appeal.

    provide users with a consistent, intuitive experience, your app should follow the accepted Android conventions for touch gestures. The Gestures -design guide +design guide shows you how to use common gestures in Android apps. Also see the Design Guide for Touch Feedback.

    diff --git a/docs/html/training/notify-user/build-notification.jd b/docs/html/training/notify-user/build-notification.jd index 2f96a20985ed..baa10748c4ec 100644 --- a/docs/html/training/notify-user/build-notification.jd +++ b/docs/html/training/notify-user/build-notification.jd @@ -31,7 +31,7 @@ trainingnavtop=true
  • - Notifications Design Guide + Notifications Design Guide
  • diff --git a/docs/html/training/notify-user/display-progress.jd b/docs/html/training/notify-user/display-progress.jd index e2cf033d7b6c..9018eb1950c0 100644 --- a/docs/html/training/notify-user/display-progress.jd +++ b/docs/html/training/notify-user/display-progress.jd @@ -29,7 +29,7 @@ trainingnavtop=true
  • - Notifications Design Guide + Notifications Design Guide
  • diff --git a/docs/html/training/notify-user/expanded.jd b/docs/html/training/notify-user/expanded.jd index 23d85d438092..60853caf047b 100644 --- a/docs/html/training/notify-user/expanded.jd +++ b/docs/html/training/notify-user/expanded.jd @@ -29,7 +29,7 @@ trainingnavtop=true
  • - Notifications Design Guide + Notifications Design Guide
  • diff --git a/docs/html/training/notify-user/index.jd b/docs/html/training/notify-user/index.jd index 57efd6512849..4d930e0b2b94 100644 --- a/docs/html/training/notify-user/index.jd +++ b/docs/html/training/notify-user/index.jd @@ -27,7 +27,7 @@ startpage=true
  • - Notifications Design Guide + Notifications Design Guide
  • @@ -50,7 +50,7 @@ class="button">Download the sample

    - The Notifications design guide shows + The Notifications design guide shows you how to design effective notifications and when to use them. This class shows you how to implement the most common notification designs.

    diff --git a/docs/html/training/notify-user/managing.jd b/docs/html/training/notify-user/managing.jd index fc12cfb9f32a..c68d6f9ab04c 100644 --- a/docs/html/training/notify-user/managing.jd +++ b/docs/html/training/notify-user/managing.jd @@ -29,7 +29,7 @@ trainingnavtop=true
  • - Notifications Design Guide + Notifications Design Guide
  • diff --git a/docs/html/training/notify-user/navigation.jd b/docs/html/training/notify-user/navigation.jd index cdb7f3d6e0c4..65f8d48ba375 100644 --- a/docs/html/training/notify-user/navigation.jd +++ b/docs/html/training/notify-user/navigation.jd @@ -29,7 +29,7 @@ trainingnavtop=true
  • - Notifications Design Guide + Notifications Design Guide
  • -- 2.11.0