自 2025 年 3 月 27 日起,我們建議您使用 android-latest-release
而非 aosp-main
建構及貢獻 AOSP。詳情請參閱「Android 開放原始碼計畫變更」。
無障礙功能
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
硬體按鈕
使用 Android 保護確認功能實作無障礙功能時,請遵循下列規範。
放大硬體
確認字串
訊息 |
按兩下 (按鈕) 即可確認 |
顏色 |
#000000 87% |
字型 |
Roboto-Medium |
字型大小 |
需求條件:18sp |
行高 |
需求條件:20dp |
取消字串
訊息 |
取消 |
顏色 |
#000000 87% |
字型 |
Roboto-Medium |
字型大小 |
需求條件:18sp |
行高 |
需求條件:20dp |
訊息 |
規定:Android 保護確認 |
顏色 |
#000000 87% |
字型 |
Roboto-Regular |
字型大小 |
必要條件:22sp |
行高 |
需求條件:28dp |
內文
訊息 |
本文是由應用程式開發人員提供。 |
顏色 |
#000000 87% |
字型 |
Roboto-Regular |
字型大小 |
需求條件:20sp |
行高 |
需求條件:28dp |
訊息 |
必要條件:這項確認程序可為您即將採取的動作提供額外安全防護。 |
顏色 |
#000000 54% |
字型 |
Roboto-Regular |
字型大小 |
需求條件:18sp |
行高 |
需求條件:24dp |
硬體反轉顏色
反轉顏色無障礙功能只會變更顏色屬性。使用者介面的所有其他屬性都保持不變。
背景顏色 |
#000000 87% |
圖示顏色 |
#a1c2fa |
確認字串顏色 |
#ffffff |
取消字串顏色 |
#ffffff |
標題文字顏色 |
#ffffff |
開發人員文字顏色 |
#ffffff |
副標題文字顏色 |
#ffffff |
軟體按鈕
如果您的 Android 保護確認功能實作項目使用軟體按鈕,請在實作無障礙功能時遵循下列規範。
軟體放大檢視畫面
確認字串
取消字串
訊息 |
規定:Android 保護確認 |
顏色 |
#000000 87% |
字型 |
Roboto-Regular |
字型大小 |
需求條件:24sp |
行高 |
需求條件:28dp |
內文
訊息 |
本文是由應用程式開發人員提供。 |
顏色 |
#000000 87% |
字型 |
Roboto-Regular |
字型大小 |
需求條件:20sp |
行高 |
需求條件:24dp |
訊息 |
必要條件:這項確認程序可為您即將採取的動作提供額外安全防護。 |
顏色 |
#000000 54% |
字型 |
Roboto-Regular |
字型大小 |
需求條件:16sp |
行高 |
需求條件:20dp |
軟體反轉顏色
反轉色彩無障礙功能只會變更色彩屬性。使用者介面的所有其他屬性都保持不變。
背景顏色 |
#000000 87% |
圖示顏色 |
#a1c2fa |
確認字串顏色 |
#000000 87% |
確認按鈕顏色 |
#a1c2fa |
取消字串顏色 |
#a1c2fa |
標題文字顏色 |
#ffffff |
開發人員文字顏色 |
#ffffff |
副標題文字顏色 |
#ffffff |
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間: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"]],["上次更新時間:2025-07-27 (世界標準時間)。"],[],[],null,["# Accessibility\n\nHardware buttons\n----------------\n\nUse the following guidelines when implementing accessibility\nwith Android Protected Confirmation. \n\n### Hardware Magnified View\n\n#### Confirmation string\n\n| Message | Double-press (button) to confirm |\n| Color | #000000 87% |\n| Font face | [Roboto-Medium](https://fonts.google.com/specimen/Roboto) |\n| Font size | Requirement: 18sp |\n| Line height | Requirement: 20dp |\n|-------------|-----------------------------------------------------------|\n\n#### Cancel string\n\n| Message | Cancel |\n| Color | #000000 87% |\n| Font face | [Roboto-Medium](https://fonts.google.com/specimen/Roboto) |\n| Font size | Requirement: 18sp |\n| Line height | Requirement: 20dp |\n|-------------|-----------------------------------------------------------|\n\n#### Header text\n\n| Message | Requirement: Android Protected Confirmation |\n| Color | #000000 87% |\n| Font face | [Roboto-Regular](https://fonts.google.com/specimen/Roboto) |\n| Font size | Requirement: 22sp |\n| Line height | Requirement: 28dp |\n|-------------|------------------------------------------------------------|\n\n#### Body text\n\n| Message | The body text is provided by the app developer. |\n| Color | #000000 87% |\n| Font face | [Roboto-Regular](https://fonts.google.com/specimen/Roboto) |\n| Font size | Requirement: 20sp |\n| Line height | Requirement: 28dp |\n|-------------|------------------------------------------------------------|\n\n#### Subheader text\n\n| Message | Requirement: This confirmation provides an extra layer of security for the action you're about to take. |\n| Color | #000000 54% |\n| Font face | [Roboto-Regular](https://fonts.google.com/specimen/Roboto) |\n| Font size | Requirement: 18sp |\n| Line height | Requirement: 24dp |\n|-------------|---------------------------------------------------------------------------------------------------------|\n\n### Hardware Inverted colors\n\nInverted colors accessibility only changes the color properties. All other\nproperties of the UI remain the same.\n\n| Background color | #000000 87% |\n| Icon color | #a1c2fa |\n| Confirmation string color | #ffffff |\n| Cancel string color | #ffffff |\n| Header text color | #ffffff |\n| Developer text color | #ffffff |\n| Subheader text color | #ffffff |\n|---------------------------|-------------|\n\nSoftware buttons\n----------------\n\nUse the following guidelines when implementing accessibility\nif your Android Protected Confirmation implementation uses\nsoftware buttons. \n\n### Software Magnified View\n\n#### Confirmation string\n\n| Message | Ok |\n| Button color | #4285f4 100% |\n| Font face | [Roboto-Medium](https://fonts.google.com/specimen/Roboto) |\n| Font size | Requirement: 20sp |\n|--------------|-----------------------------------------------------------|\n\n#### Cancel string\n\n| Message | Cancel |\n| Text color | #4285f4 100% |\n| Font face | [Roboto-Medium](https://fonts.google.com/specimen/Roboto) |\n| Font size | Requirement: 20sp |\n|------------|-----------------------------------------------------------|\n\n#### Header text\n\n| Message | Requirement: Android Protected Confirmation |\n| Color | #000000 87% |\n| Font face | [Roboto-Regular](https://fonts.google.com/specimen/Roboto) |\n| Font size | Requirement: 24sp |\n| Line height | Requirement: 28dp |\n|-------------|------------------------------------------------------------|\n\n#### Body text\n\n| Message | The body text is provided by the app developer. |\n| Color | #000000 87% |\n| Font face | [Roboto-Regular](https://fonts.google.com/specimen/Roboto) |\n| Font size | Requirement: 20sp |\n| Line height | Requirement: 24dp |\n|-------------|------------------------------------------------------------|\n\n#### Subheader text\n\n| Message | Requirement: This confirmation provides an extra layer of security for the action you're about to take. |\n| Color | #000000 54% |\n| Font face | [Roboto-Regular](https://fonts.google.com/specimen/Roboto) |\n| Font size | Requirement: 16sp |\n| Line height | Requirement: 20dp |\n|-------------|---------------------------------------------------------------------------------------------------------|\n\n### Software Inverted Colors\n\nThe inverted color accessibility only changes the color properties. All other\nproperties of the UI remain the same.\n\n| Background color | #000000 87% |\n| Icon color | #a1c2fa |\n| Confirmation string color | #000000 87% |\n| Confirmation button color | #a1c2fa |\n| Cancel string color | #a1c2fa |\n| Header text color | #ffffff |\n| Developer text color | #ffffff |\n| Subheader text color | #ffffff |\n|---------------------------|-------------|"]]