Skip to content

Most visited

Recently visited




  1. 确保通知兼容性

新版本 Android Wear 更新了通知的视觉样式和交互范式,大大简化了用户阅读应用通知和与通知进行交互的过程。

并非 Wear 1.0 的所有功能都可用于当前版本,即便用于设置这些功能的函数位于支持库类 NotificationCompat.Builder 中,也是如此。下文说明如何设计 Wear 应用通知以便与更新版本的 Android Wear 兼容。


图 1. Android Wear 1.x 和 2.0 中同一通知的比较。


This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields


在微信上关注 Google Developers

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (Dec 2017 Android Platform & Tools Survey)