2025 年 3 月 27 日より、AOSP のビルドとコントリビューションには aosp-main
ではなく android-latest-release
を使用することをおすすめします。詳細については、AOSP の変更をご覧ください。
付録 B、カスタマイズ
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Car UI のカスタマイズが意図したとおりに機能するよう、以下に示す各項目を遵守する必要があります。
全般
このセクションの制限事項は、レイアウトに関係なく適用されます。
要素 |
説明 |
---|
タイポグラフィ |
|
コントラスト |
- フォアグラウンド(テキスト)とバックグラウンドのコントラストは 4.5:1 以上にする必要があります。
- ボタンの色とバックグラウンドのコントラストは 3:1 以上にする必要があります。
- 選択状態のタブとバックグラウンドのコントラストは 4.5:1 以上にする必要があります。
- 選択状態のタブと選択解除状態のコントラストは 3:1 以上にする必要があります。
|
その他 |
- アイコンはすべてベクター型ドローアブルにする必要があります。
- タップ ターゲットの幅は 76 dp 以上にする必要があります。
- パディング定数は、降順にする必要があります(例:
car_ui_padding_0 > car_ui_padding_1 >
car_ui_padding_2 )。
|
コンポーネント
下記の値は、特定のコンポーネントに適用されます。
要素 |
説明 |
---|
|
少なくとも 20 文字の「W」を表示できる幅が必要です。 |
設定 |
少なくとも 20 文字の「W」を表示できる幅が必要です。 |
アプリスタイルのビュー
| 次のようにする必要があります。
- 幅: 少なくとも 672 密度非依存ピクセル(dp)を表示できる値。
- 高さ: 少なくとも 672 dp を表示できる値。
|
レイアウト
このセクションの制限事項は、Car UI ライブラリ コンポーネントの特定のレイアウトと組み合わせに適用されます。
一連の固有のケースが確認され、新しいパターンに一般化されました。
ロケーション ダイアログ
テスト ダイアログは、Google Play 開発者サービスのロケーション ダイアログと同じコンテンツを含み、Car UI ライブラリ コンポーネントを使用して作成されており、コンテンツが完全に表示されていることを確認するためにテストされます。
要素 |
説明 |
---|
タイトル |
少なくとも 38 文字の「W」を表示できる幅が必要です。 |
本文 |
完全に表示される必要があり、また、次のものを表示できる大きさである必要があります。
- 少なくとも 270 文字の「W」からなる文字列。
- 少なくとも 4 行のテキスト。
|
カスタム外部リンク(CTA) |
CTA は完全に表示される必要があります。
- ダイアログの幅は、少なくとも 2 つの CTA を表示できるだけの値にする必要があります。
- タイトルの幅は、少なくとも 9 文字の「W」を表示できるだけの値にする必要があります。
|
設定画面
テスト設定画面は、次の表で説明するアプリバー、サブヘッダー、リスト要素の各コンポーネントで構成されます。
要素 |
説明 |
---|
アプリバー |
- タイトルの幅は、少なくとも 12 文字の「W」を表示できるだけの値にする必要があります。
- 高さは 76 dp 以上にする必要があります。
|
サブヘッダー |
少なくとも 12 文字の「W」を表示できる幅が必要です。 |
リスト要素 |
次のようにする必要があります。
- 少なくとも 12 文字の「W」表示できる幅。
- 高さ 76 dp 以上。
|
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-07-27 UTC。
[[["わかりやすい","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 UTC。"],[],[],null,["# Appendix B, customization\n\nTo ensure Car UI customizations perform as intended, you MUST adhere to the\nitems described below.\n\nGeneral\n-------\n\nLimits in this section are true regardless of layout:\n\n| Element | Description |\n|----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### Typography | - Tab text labels MUST be wide enough to display strings of at least 6 \"W\" characters. - Text containers MUST be tall enough to fully display a single \"H\" character. - Text sizes MUST appear in descending order, for example: `car_ui_body_1` \\\u003e `car_ui_body_2` \\\u003e `car_ui_body_3` |\n| ### Contrast | - Contrast between foreground (text) and background MUST be at least 4.5:1. - Contrast between button color and background MUST be at least 3:1. - Tab selected state contrast with background MUST be at least 4.5:1. - Tab selected state contrast with unselected state MUST be at least 3:1. |\n| ### Others | - All icons MUST be vector drawables. - Touch targets MUST be at least 76 dp wide. - Padding constants MUST appear in descending order, for example: `car_ui_padding_0` \\\u003e `car_ui_padding_1` \\\u003e `car_ui_padding_2` |\n\nComponents\n----------\n\nValues provided below apply to specific components:\n\n| Element | Description |\n|---------------------|-----------------------------------------------------------------------------------------------------------------------------|\n| ### Toolbar | SHOULD be wide enough to display title strings of at least 20 \"W\" characters. |\n| ### Preference | SHOULD be wide enough to display title strings of at least 20 \"W\" characters. |\n| ### App styled view | SHOULD be: - Wide enough to display at least 672 density-independent pixels (dp). - Tall enough to display at least 672 dp. |\n\nLayout\n------\n\nLimits in this section pertain to specific layouts and combinations of Car UI library components.\nA series of unique cases have been observed and generalized into emergent patterns.\n\n### Location dialog\n\nA test dialog that contains the same content as the Google Play Services location dialog,\nconstructed with Car UI library components and tested to ensure full content visibility:\n\n| Element | Description |\n|--------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Title** | MUST wide enough to display strings of at least 38 \"W\" characters. |\n| **Body** | MUST be completely visible and large enough to display: - Strings that may consist of at least 270 \"W\" characters. - At least four lines of text. |\n| **Call-to-action (CTA)** | CTA MUST be completely visible: - Dialog MUST be wide enough to display at least two CTAs. - Titles MUST be wide enough to display strings of at least 9 \"W\" characters. |\n\n### Settings screen\n\nThe Test Settings screen is composed of the app bar, subheader, and list elements components,\nwhich are described in the table:\n\n| Element | Description |\n|-------------------|-------------------------------------------------------------------------------------------------------------|\n| **App bar** | - Title MUST be wide enough to display strings of at least 12 \"W\" characters. - MUST be at least 76dp tall. |\n| **Subheader** | MUST be wide enough to display strings of at least 12 \"W\" characters. |\n| **List elements** | MUST be: - Wide enough to display strings of at least 12 \"W\" characters. - At least 76dp tall. |"]]