定义用户任务
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如需创建应用的 Android for Cars 版本,请先确定与车辆相关的任务,并牢记需要限制驾驶员分心。
防止驾驶员分心
为了尽量避免让驾驶员分心,请在设计汽车应用时牢记这些策略。
限制每个屏幕上的信息:为了让驾驶员尽可能集中注意力在路况上,应用库中的模板会限制在驾车时每个屏幕上可显示的信息量。每个模板都说明了允许的操作、图片和其他元素(例如,在某些情况下文字量)的数量。对于包含列表项和网格项的模板,允许的最大项数因车辆而异,并且可通过 ConstraintManager API 进行检索。
仅呈现重要的应用内容:对于应用的汽车版本,请专注于与驾驶相关的基本内容(例如常用地点),而不是应用的完整内容。
最大限度地减少任务需要的注意力:通过保持任务流简短来简化驾驶员的流程。
提供快捷方式:尽早在任务流中显示保存的用户内容,以便快速访问(例如,收藏夹或最近访问的位置)。
最大限度地减少用户输入:尽可能提供预先选择的选项和默认值,以便用户在驾车时轻松做出选择。此外,请考虑在驾车时启用语音输入。
更新模板内容时要谨慎:由于更新模板内容可能会使驾驶员的注意力分散,无法驾驶,因此某些类型的更新会受到限制。(也就是说,它们会增加任务的步数,而驾车时步数会受到限制。)具备刷新功能的更新带来的干扰较少,可以加以限制,以最大限度减少干扰。如需了解详情,请参阅什么是刷新?
如需了解有关在车载设备界面设计中限制干扰的一般信息,请访问设计基础。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eDesign Android Auto apps to minimize driver distraction by limiting on-screen information, presenting essential content only, and providing shortcuts.\u003c/p\u003e\n"],["\u003cp\u003eKeep tasks simple, reduce user input with pre-selected options, and enable voice commands where feasible.\u003c/p\u003e\n"],["\u003cp\u003eMinimize attention-grabbing template content updates by using refreshes strategically and adhering to the car UI design principles for distraction-free experiences.\u003c/p\u003e\n"]]],[],null,["# Define user tasks\n\n\u003cbr /\u003e\n\nTo create the Android for Cars version of your app, first identify\nvehicle-appropriate tasks -- and keep in mind the need to limit driver\ndistraction.\n\nLimiting driver distraction\n---------------------------\n\nTo minimize distraction for drivers, keep these strategies in mind when\ndesigning your car app.\n\n**Limit information on each screen** : To keep driver attention on the road as\nmuch as possible, the templates in the app library limit the amount of\ninformation that can appear on each screen while driving. Allowable numbers of\nactions, images, and other elements (such as amount of text, in some cases) are\ndescribed for each template. For templates with list and grid items, the maximum\nallowed number of items varies by vehicle and can be retrieved via the\n[ConstraintManager API](https://developer.android.com/training/cars/apps#constraint-manager).\n\n**Present only essential app content**: For the car version of your app, focus\non essential, driving-related content such as frequently-used locations, rather\nthan the full content of your app.\n\n**Minimize attention needed for tasks** : Simplify processes for drivers by\n[keeping task flows short](/cars/design/create-apps/apps-for-drivers/plan-task-flows#short).\n\n**Provide shortcuts**: Present saved user content early in task flows for quick\naccess (for example, favorites or recently visited locations).\n\n**Minimize user input** : When possible, present pre-selected options and\ndefaults, so users can easily make choices while driving. Also, consider\nenabling [voice input](/cars/design/create-apps/apps-for-drivers/plan-communications) while driving.\n\n**Update template content cautiously** : Because updates to template content may\ntake the driver's attention away from the road, some types of updates are\nlimited. (That is, they increase the step count of the task, and steps are\nlimited while driving.) Updates that are refreshes are less disruptive and can\nbe throttled to minimize distraction. For details, see\n[What is a refresh?](/cars/design/create-apps/apps-for-drivers/plan-task-flows#refresh)\n\nFor general information about limiting distraction in car UI design, visit\n[Design foundations](/cars/design/design-foundations)."]]