Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Android cho ô tô cung cấp hai cách để cùng tạo trải nghiệm duyệt xem và phát nội dung đa phương tiện (chẳng hạn như nhạc, podcast và sách nói) tuỳ thuộc vào mức độ tuỳ chỉnh mà bạn cần.
Hình 1. Trải nghiệm ứng dụng đa phương tiện mẫu được tạo bằng các mẫu Thư viện ứng dụng cho ô tô
MediaBrowserService (MBS): Một tuỳ chọn tạo sẵn, phù hợp để nhanh chóng tạo trải nghiệm ứng dụng đa phương tiện chất lượng mà không cần tuỳ chỉnh.
Mẫu Thư viện ứng dụng dành cho ô tô (CAL): Các mẫu có thể tuỳ chỉnh cung cấp các biện pháp bảo vệ để giúp bạn mang ứng dụng đa phương tiện tốt nhất của mình lên ô tô mà không cần bắt đầu từ đầu.
MediaBrowserService
Nếu bạn muốn tạo một ứng dụng đa phương tiện cơ bản với khả năng tuỳ chỉnh và xây dựng thương hiệu bị hạn chế, hãy sử dụng MediaBrowserService. Đây là một trải nghiệm có chi phí thấp hơn để cho phép người dùng duyệt xem nội dung và phát nội dung nghe nhìn.
Vì Google và nhà sản xuất ô tô xác định mô hình tương tác và thiết kế hình ảnh cơ bản cho phần lớn trải nghiệm nội dung nghe nhìn trên Android cho Ô tô, nên vai trò của bạn trong thiết kế chủ yếu tập trung vào:
Tạo cấu trúc duyệt qua cho nội dung
Cung cấp các thành phần và biểu tượng thương hiệu cho các thẻ điều hướng và các chế độ điều khiển tuỳ chỉnh (nếu cần)
Tuỳ thuộc vào ứng dụng, bạn có thể cần tạo thêm các luồng, chẳng hạn như luồng đăng nhập hoặc chế độ cài đặt cho màn hình ô tô (đối với AAOS) bằng cách sử dụng các mẫu trong CAL.
Mẫu Thư viện ứng dụng cho ô tô
Các mẫu Thư viện ứng dụng cho ô tô cho phép tuỳ chỉnh nhiều hơn trong ứng dụng và linh hoạt hơn để mang lại nhiều tính năng hơn cho ứng dụng đa phương tiện trên Android Auto.
Cụ thể, các mẫu sau đây sẽ giúp bạn tạo ra trải nghiệm nội dung nghe nhìn tuyệt vời:
Mẫu mục theo phần:Mẫu mục theo phần cho phép bạn kết hợp danh sách và lưới để tạo cấu trúc duyệt web tuỳ chỉnh. Để nhận các bản cập nhật và tính năng mới nhất, hãy di chuyển mọi thực thể hiện có của mẫu danh sách hoặc lưới vào mẫu mục theo phần.
Mẫu phát nội dung nghe nhìn:Mẫu phát nội dung nghe nhìn cho phép bạn quyết định những thao tác có thể thực hiện trên màn hình phát. Bạn có thể chọn nút nào sẽ hiển thị trong phần kết quả tìm kiếm, cũng như nút phát và hình ảnh nào sẽ hiển thị (được cung cấp thông qua phiên phát nội dung nghe nhìn).
Mẫu đăng nhập:Mẫu đăng nhập trình bày các lựa chọn để đăng nhập vào ứng dụng khi đỗ xe.
Mẫu thẻ:Mẫu thẻ đóng vai trò là vùng chứa cho các mẫu khác, cung cấp các thẻ ở trên cùng.
Hình 2. Mẫu mục theo phầnHình 3. Mẫu phát nội dung nghe nhìn
Để tìm hiểu kỹ hơn về trải nghiệm đa phương tiện trong Android Auto, hãy xem phần Android Auto > Ứng dụng đa phương tiện. Để xem cách trải nghiệm này hoạt động trong những chiếc ô tô có tích hợp Google, hãy xem phần Automotive OS > Media apps (Android Automotive OS > Ứng dụng đa phương tiện).
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003eAndroid for Cars focuses on audio-centric media experiences (music, podcasts, audiobooks) optimized for car screens to minimize driver distraction.\u003c/p\u003e\n"],["\u003cp\u003eApp developers primarily design the content browsing structure and provide branding elements/icons, with the core visual design handled by Google and car manufacturers.\u003c/p\u003e\n"],["\u003cp\u003eOptional features include creating a sign-in process and settings specifically for the car environment using provided templates.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can refer to detailed guides for creating media apps for both Android Auto and AAOS platforms, along with specific UX requirements.\u003c/p\u003e\n"]]],[],null,["# Media apps\n\n\u003cbr /\u003e\n\n*Android for Cars* offers two ways to co-create media browsing and playing\nexperiences (such as for music, podcasts, and audio books) depending on the\nlevel of customization you need.\n**Figure 1.** A sample media app experience created using Car App Library templates\n\n1. **`MediaBrowserService` (MBS):** A done-for-you option, perfect for quickly\n creating a quality media app experience without customization.\n\n2. **Car App Library (CAL) templates:** Customizable templates provide\n guardrails to help you bring the best of your media app to the car without\n starting from the beginning.\n\nMediaBrowserService\n-------------------\n\nIf you'd like to create a basic media app with limited branding and\ncustomization, use `MediaBrowserService`. This is a lower-cost experience\nto let users browse content and play media.\n\nBecause the basic visual design and interaction model for much of the Android\nfor Cars media experience is determined by Google and car makers, your role in\ndesign is mostly focused on:\n\n- **Creating a browsing structure** for the content\n- **Supplying branding elements and icons** for navigational tabs and custom controls (if needed)\n\nDepending on your app, you may need to create additional flows, such as\na sign-in flow or settings for the car screen (for AAOS) using\nthe templates in CAL.\n\nCar App Library templates\n-------------------------\n\n[Car App Library](https://developer.android.com/training/cars/apps)\ntemplates allow for more in-app customization\nand flexibility to bring more features to your media app\non Android Auto.\n| **Beta:** Templated media apps are a beta-release feature. You can publish templated media apps to internal and closed testing tracks on the Play Store, but not to open testing and production tracks. You may [nominate yourself to become an early access partner](https://docs.google.com/forms/d/e/1FAIpQLSf0z4Nfw8wrloVhlgHDpLgdkg4WXsFj9ni5c1pw0qTvJ3Q4fQ/viewform).\n\nThe following templates in particular will help you create a great\nmedia experience:\n\n- **Sectioned item template:** The\n [sectioned item template](/cars/design/create-apps/apps-for-drivers/templates/sectioned-item-template)\n lets you mix and match lists and grids to create a customized browsing\n structure. To get the latest updates and features, move any existing instances\n of the list or grid templates into the sectioned item template.\n\n- **Media Playback template:** The\n [media playback template](/cars/design/create-apps/apps-for-drivers/templates/media-playback-template)\n lets you decide which\n actions can be performed from the playback screen. You can choose which buttons\n to show in the search results section and which playback buttons and images\n to show (provided through media session).\n\n- **Sign-in template:** The\n [sign-in template](/cars/design/create-apps/apps-for-drivers/templates/sign-in-template)\n presents options for signing in to the app while parked.\n\n- **Tab template:** The\n [tab template](/cars/design/create-apps/apps-for-drivers/templates/tab-template)\n acts as a container for other templates, providing tabs across the top.\n\n| **Note:** Media apps for the car feature audio content, rather than video, to help users focus on the road. For video experiences, see [Parked and passenger apps](/cars/design/create-apps/app-types/parked-passenger).\n**Figure 2.** Sectioned item template **Figure 3.** Media playback template\n\nGet started\n-----------\n\nTo learn how to use the\ntemplates in CAL, see\n[Build apps with templates](/cars/design/create-apps/apps-for-drivers/build-with-templates).\n\nExamples\n--------\n\nFor a closer look at the media experience in Android Auto, see\n[Android Auto \\\u003e Media apps](/cars/design/android-auto/apps/media-apps). To see\nhow the experience works in cars with Google built-in, see\n[Automotive OS \\\u003e Media apps](/cars/design/automotive-os/apps/media/overview).\n| **Note:** For technical details about how to build this experience, see [Build media apps for cars](https://developer.android.com/training/cars/media).\n\nUX requirements\n---------------\n\nMedia apps need to meet the [Media app requirements](/cars/design/create-apps/ux-requirements/media-apps)."]]