2025 年 3 月 27 日より、AOSP のビルドとコントリビューションには aosp-main
ではなく android-latest-release
を使用することをおすすめします。詳細については、AOSP の変更をご覧ください。
Car UI ライブラリのアプリへの統合
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Car UI ライブラリには、アプリに実装するための 2 つの要素が含まれています。
アプリは、Car UI ライブラリを依存関係として追加することにより統合します。
Car UI コンポーネントのスタイル設定
一般的に、アプリは、データ(および場合によっては画像とアイコン)を備えることにより、必要な機能をすべて実現できる必要があります。たとえば、Car UI ライブラリは、戻る、閉じる、検索、メニューなどの標準のアイコンを備えています。リソースが不足している、または備えているコンポーネントでは実現できない機能があることが判明した場合は、Android Automotive パートナー エンジニアリングにお問い合わせください。
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。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,["# Integrate the Car UI library into apps\n\nCar UI library contains two elements for apps to implement:\n\n- **Components.**Java classes that implement a specific behavior. For example,\n CarUiRecyclerView and Toolbar.\n\n- **Resources.** Individual Android resources that represent the *knobs*\n available for OEMs to achieve consistency with their own design. The components above use these\n resources to become *customizable*.\n\nApps integrate Car UI library by adding it as a dependency:\n\n- Android 9 and Android 10 (`Android.mk` file), add the following:\n\n ```maple\n LOCAL_STATIC_ANDROID_LIBRARIES := car-ui-lib\n ```\n- Android 11 (and higher) (`Android.bp`), add the following:\n\n ```scdoc\n static_libs: [\n ...\n \"car-ui-lib-bp\",\n ]\n ```\n\nStyle Car UI components\n-----------------------\n\nIn general, apps should be able to achieve all necessary functionality by providing\ndata and, in certain cases, images and icons. For example, standard icons such as Back, Close,\nSearch, and Menu are provided by the Car UI library. Engage with Android Automotive Partner\nEngineering if you find there are missing resources or if there is functionality that can't be\nachieved with the provided components."]]