应用设计注意事项
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
虽然通知的大多数设计方面都由汽车制造商控制,但应用开发者可以在以下几个方面影响设计。
汽车制造商可以在自己的车辆中自定义通知体验的许多方面,包括通知卡片样式、通知动作时间以及通知中心的布局。
应用开发者可以通过以下方式影响通知设计:
- 背景颜色(仅限导航):提供导航通知卡的背景颜色,供汽车制造商自行决定使用
- 图标:提供应用图标(用于宣传品牌)和其他相关图标,包括头像和大型导航图标(如转弯箭头)
- 强调色:用于提供应用强调色,供汽车制造商自主为应用图标着色
- 文字长度:确保通知文字尽可能简洁
请注意,汽车内的通知经过精心设计,简单易行,以免驾驶员分心。支持的效果较少(请参阅下面的技术说明),汽车制造商可以选择在车辆行驶时将任何文本截断。不简洁的文字最终可能会被截断和含糊不清。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eCar makers control most design aspects of in-car notifications, such as styling, timing, and layout in the Notification Center.\u003c/p\u003e\n"],["\u003cp\u003eApp developers can influence some notification design elements like background color (for navigation only), icons (including app icons and navigation icons), accent color, and text length.\u003c/p\u003e\n"],["\u003cp\u003eIn-car notifications are intentionally minimalistic to avoid driver distraction, with limited effects and potential text truncation for conciseness.\u003c/p\u003e\n"]]],[],null,["# App design considerations\n\n\u003cbr /\u003e\n\nWhile most design aspects of notifications are controlled by car makers, there are a few areas where app developers can influence design.\n\nCar makers can customize many aspects of the notification experience in their vehicles, including styling of notification cards, timing of notification motions, and layout of the Notification Center.\n\nApp developers can influence notification design in the following ways:\n\n- **Background color** (navigation only): Supply a background color for navigation notification cards, to be used at the discretion of car makers\n- **Icons:** Supply app icons (for branding) and other icons as relevant, including avatars and large navigation icons (such as turn arrows)\n- **Accent color:** Supply app accent color, to be used to color the app icon at the discretion of car makers\n- **Text length:** Make sure text for notifications is as concise as possible\n\nKeep in mind that notifications in cars are intentionally kept simple, to avoid distracting the driver. Fewer effects are supported (see technical note below) and car makers can choose to truncate any text beyond a certain length when the car is moving. Text that is not concise may end up being truncated and unclear.\n| **Note:** Some effects that are supported on phones are not supported for notifications in Android Automotive OS. For technical details, consult [Notification API changes and restrictions for cars](https://developer.android.com/training/cars/notifications#api-changes)."]]