确认叠加层
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。

确认叠加层会在当前视图顶部显示一条表示状态更改的临时消息。
使用方法
大多数情况下并不需要明确的确认。界面中的明显变化就足以表明操作已成功。如果用户的操作在界面中不可见,请使用确认叠加层向用户提供必要的反馈。最好在界面本身中显示更改,而不是显示确认叠加层。
将消息添加到消息记录中,而不是显示确认叠加层:

如果操作中的更改不会导致界面发生变化,则显示确认叠加层:

自适应布局
为对话框增加了更大的显示区域,以确保用户体验的提升是通过增加的房地产功能得到增强的。更新包括减少滚动、提供充足的外边距和更大的点按目标。
外边距
利润率百分比是通用的。


刚性线条长度准则
线条准则会普遍应用。行长度上限为 3 行,字符数限制为 36 个字符(如果不包括拉丁字母,则上限为 30 个字符)。

本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# Confirmation overlay\n\n[Confirmation overlays](/reference/androidx/wear/widget/ConfirmationOverlay) display a temporary message expressing a state change at the top of the current view.\n\nUsage\n-----\n\nIn most cases, an explicit confirmation is not needed. A visible change in the UI is enough to show that an action succeeded. If the user's action is not visible in the UI, use the confirmation overlay to give the necessary feedback to the user. It's better to show a change in the UI itself rather than showing a confirmation overlay.\n\nAdd a message to your message history instead of showing a confirmation overlay:\n\nShow a confirmation overlay if a change in action doesn't cause a change in the UI:\n\nAdaptive layouts\n----------------\n\nLarger display accommodations have been made to dialogs to ensure that user experience is enhanced with increased real estate affordance. Updates include reduced scrolling, generous margins, and larger tap targets.\n\n### **Margins**\n\nMargin percentages are universally applied.\n\n### **Rigid line length guidelines**\n\nLine guidelines are universally applied. The max line length is of 3 lines with max character limit of 36 (30 with not Latin)."]]