Appendix B, customization
Stay organized with collections
Save and categorize content based on your preferences.
To ensure Car UI customizations perform as intended, you MUST adhere to the
items described below.
General
Limits in this section are true regardless of layout:
Element |
Description |
Typography |
|
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.
|
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 > car_ui_padding_1 >
car_ui_padding_2
|
Components
Values provided below apply to specific components:
Element |
Description |
|
SHOULD be wide enough to display title strings of at least 20 "W" characters. |
Preference |
SHOULD be wide enough to display title strings of at least 20 "W" characters. |
App styled view
| SHOULD be:
- Wide enough to display at least 672 density-independent pixels (dp).
- Tall enough to display at least 672 dp.
|
Layout
Limits in this section pertain to specific layouts and combinations of Car UI library components.
A series of unique cases have been observed and generalized into emergent patterns.
Location dialog
A test dialog that contains the same content as the Google Play Services location dialog,
constructed with Car UI library components and tested to ensure full content visibility:
Element |
Description |
Title |
MUST wide enough to display strings of at least 38 “W” characters. |
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.
|
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.
|
Settings screen
The Test Settings screen is composed of the app bar, subheader, and list elements components,
which are described in the table:
Element |
Description |
App bar |
- Title MUST be wide enough to display strings of at least 12 “W” characters.
- MUST be at least 76dp tall.
|
Subheader |
MUST be wide enough to display strings of at least 12 “W” characters. |
List elements |
MUST be:
- Wide enough to display strings of at least 12 “W” characters.
- At least 76dp tall.
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-08-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-08-26 UTC."],[],[]]