Car UI library contains two elements for apps to implent:
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.
Applications integrate Car UI library by adding it as a dependency:
Android 9 and Android 10 (
Android.mkfile), 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", ]
To see an example of using Car UI library components, see the
Styling Car UI Components
In general, applications 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.