发布与延迟
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
设计应用的启动体验时应谨慎,因为用户对应用执行的第一项操作就是启动。
在设计应用的启动时,应遵循以下原则。
努力提高应用性能,因为一直举着胳膊等待内容加载完成会令人不快。
指出正在进行的活动
告知用户系统正在积极处理他们的请求,让他们放心,而这可以提高用户对延迟的容忍度。
逐步构建
逐步构建可以使用的内容。可以通过以下方式做到这一点。
显示静态元素
开始时先显示文本元素、可操作的按钮和占位符界面等静态元素,与此同时加载其余内容。
check_circle
正确做法
一边显示静态元素,一边加载其余内容。
cancel
错误做法
显示动态元素。之所以说这种做法错误,是因为内容的布局、形状或格式可能无法预测。
谨慎使用旋转图标
加载旋转图标具有不确定性,可能会导致延迟时间问题。应向用户显示静态文本或占位符图片,表明相关活动正在进行。
check_circle
正确做法
显示静态文本,表明正在执行的操作。
优先提供视觉反馈
在用户执行操作时,立即向其提供视觉反馈。这样,用户就能肯定相关操作已发生。对于点按按钮等简单操作,这种反馈可以是轻触时的涟漪反馈。对于更改手机上的音乐音量等更复杂的操作,可以通过在音量发生变化前显示音量指示器来提供这种反馈。
check_circle
正确做法
当系统需要执行某项操作时,首先显示视觉反馈。
标示品牌的启动屏幕
在应用启动期间集中显示应用图标,以便用户先看到应用图标。这可以提升品牌认知度,也是一种显示进度的方式。使用带有应用图标的黑色窗口背景。应用图标必须是位于表盘中心的 48x48dp 圆形图标。启动画面图标必须与应用启动器图标一致。详细了解如何添加启动画面。
check_circle
正确做法
使用黑色窗口背景和 48x48dp 的圆形图标。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[null,null,["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# Launch and latency\n\nDesign your app's launching experience with care, because this is the first\nthing users encounter.\n\nWhen launching your app, keep the following principles in mind.\n\nOptimize performance\n--------------------\n\nInvest in the performance of your app, as it can be uncomfortable to keep the\nwrist up while waiting for content to load.\n\nIndicate activity\n-----------------\n\nReassuring users that the system is actively working on their requests can\nincrease their tolerance for delays.\n\nBuild gradually\n---------------\n\nGradually build content as it becomes available. This can be done in the\nfollowing ways.\n\n### Display static elements\n\nStart with static elements such as text elements, actionable buttons, and\nplaceholder UI first, while the rest of the content loads. \ncheck_circle\n\n### Do\n\nShow static elements while other content is loading. \ncancel\n\n### Don't\n\nShow dynamic elements, because the layout, shape, or format of the content can be unpredictable.\n\n### Use spinners with caution\n\nIndeterminate loading spinners can cause latency issues. Instead show users\nstatic text or a placeholder image to indicate activity is happening. \ncheck_circle\n\n### Do\n\nShow static text to indicate the action that is happening.\n\n### Prioritize visual feedback\n\nWhen users perform an action, give them visual feedback instantly. This builds\nconfidence that the action has happened. For simple actions like tapping a\nbutton, this can be on-touch ripple feedback. For more complex actions like\nchanging the volume of music on the phone, this can be showing the volume\nindicator before the volume has been changed. \ncheck_circle\n\n### Do\n\nShow visual feedback first when the system needs to perform an action.\n\nBranded launch\n--------------\n\nDisplay the app icon centrally during app starts, so users see the app\nicon first. This improves brand recognition and is one way to show progress.\nUse a black window background with the app icon. The app icon must be a 48x48dp\ncircular icon that is positioned in the center of the watch face. The splash\nscreen icon must match the app launcher icon. Learn more about how to\n[add a splash screen](/training/wearables/apps/splash-screen). \ncheck_circle\n\n### Do\n\nUse a black window background with a circular 48x48dp icon."]]