Integrate the Car UI library into apps
Stay organized with collections
Save and categorize content based on your preferences.
Car UI library contains two elements for apps to implement:
-
Components. Java classes that implement a specific behavior. For example,
CarUiRecyclerView and Toolbar.
-
Resources. Individual Android resources that represent the knobs
available for OEMs to achieve consistency with their own design. The components above use these
resources to become customizable.
Apps integrate Car UI library by adding it as a dependency:
-
Android 9 and Android 10 (Android.mk
file), add the following:
LOCAL_STATIC_ANDROID_LIBRARIES := car-ui-lib
-
Android 11 (and higher) (Android.bp
), add the following:
static_libs: [
...
"car-ui-lib-bp",
]
Style Car UI components
In general, apps should be able to achieve all necessary functionality by providing
data and, in certain cases, images and icons. For example, standard icons such as Back, Close,
Search, and Menu are provided by the Car UI library. Engage with Android Automotive Partner
Engineering if you find there are missing resources or if there is functionality that can't be
achieved with the provided components.
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.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "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."]]