Stay organized with collections
Save and categorize content based on your preferences.
@CarProtocol
public interface Template
Known direct subclasses
GridTemplate,
ListTemplate,
LongMessageTemplate,
MapTemplate,
MapWithContentTemplate,
MediaPlaybackTemplate,
MessageTemplate,
NavigationTemplate,
PaneTemplate,
PlaceListMapTemplate,
PlaceListNavigationTemplate,
RoutePreviewNavigationTemplate,
SearchTemplate,
SectionedItemTemplate,
SignInTemplate,
TabTemplate
An interface used to denote a model that can act as a root for a tree of other models.
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 2025-05-15 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 2025-05-15 UTC."],[],[],null,["# Template\n========\n\nArtifact: [androidx.car.app:app](/jetpack/androidx/releases/car-app) \n[View Source](https://cs.android.com/search?q=file:androidx/car/app/model/Template.java+class:androidx.car.app.model.Template) \nAdded in [1.0.0](/jetpack/androidx/releases/car-app#1.0.0)\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/androidx/car/app/model/Template \"View this page in Kotlin\") \\|Java\n\n\n```\n@CarProtocol\npublic interface Template\n```\n\n\u003cbr /\u003e\n\nKnown direct subclasses \n[GridTemplate](/reference/androidx/car/app/model/GridTemplate), [ListTemplate](/reference/androidx/car/app/model/ListTemplate), [LongMessageTemplate](/reference/androidx/car/app/model/LongMessageTemplate), [MapTemplate](/reference/androidx/car/app/navigation/model/MapTemplate), [MapWithContentTemplate](/reference/androidx/car/app/navigation/model/MapWithContentTemplate), [MediaPlaybackTemplate](/reference/androidx/car/app/media/model/MediaPlaybackTemplate), [MessageTemplate](/reference/androidx/car/app/model/MessageTemplate), [NavigationTemplate](/reference/androidx/car/app/navigation/model/NavigationTemplate), [PaneTemplate](/reference/androidx/car/app/model/PaneTemplate), [PlaceListMapTemplate](/reference/androidx/car/app/model/PlaceListMapTemplate), [PlaceListNavigationTemplate](/reference/androidx/car/app/navigation/model/PlaceListNavigationTemplate), [RoutePreviewNavigationTemplate](/reference/androidx/car/app/navigation/model/RoutePreviewNavigationTemplate), [SearchTemplate](/reference/androidx/car/app/model/SearchTemplate), [SectionedItemTemplate](/reference/androidx/car/app/model/SectionedItemTemplate), [SignInTemplate](/reference/androidx/car/app/model/signin/SignInTemplate), [TabTemplate](/reference/androidx/car/app/model/TabTemplate) \n\n|---------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [GridTemplate](/reference/androidx/car/app/model/GridTemplate) | A template representing a grid of items. |\n| [ListTemplate](/reference/androidx/car/app/model/ListTemplate) | A template representing a list of items. |\n| [LongMessageTemplate](/reference/androidx/car/app/model/LongMessageTemplate) | A template for displaying a long text, which could be several paragraphs long, with associated actions. |\n| [MapTemplate](/reference/androidx/car/app/navigation/model/MapTemplate) | **This class is deprecated.** with API 7. \u003cbr /\u003e |\n| [MapWithContentTemplate](/reference/androidx/car/app/navigation/model/MapWithContentTemplate) | A template that allows an app to render map tiles with some sort of content (for example, a list). |\n| [MediaPlaybackTemplate](/reference/androidx/car/app/media/model/MediaPlaybackTemplate) | A template representing content to display for media playback. |\n| [MessageTemplate](/reference/androidx/car/app/model/MessageTemplate) | A template for displaying a message and associated actions. |\n| [NavigationTemplate](/reference/androidx/car/app/navigation/model/NavigationTemplate) | A template for showing navigation information. |\n| [PaneTemplate](/reference/androidx/car/app/model/PaneTemplate) | A template that displays a [Pane](/reference/androidx/car/app/model/Pane). |\n| [PlaceListMapTemplate](/reference/androidx/car/app/model/PlaceListMapTemplate) | A template that displays a map along with a list of places. |\n| [PlaceListNavigationTemplate](/reference/androidx/car/app/navigation/model/PlaceListNavigationTemplate) | **This class is deprecated.** with API 7. \u003cbr /\u003e |\n| [RoutePreviewNavigationTemplate](/reference/androidx/car/app/navigation/model/RoutePreviewNavigationTemplate) | A template that supports showing a list of routes alongside a custom drawn map. |\n| [SearchTemplate](/reference/androidx/car/app/model/SearchTemplate) | A model that allows the user to enter text searches, and can display results in a list. |\n| [SectionedItemTemplate](/reference/androidx/car/app/model/SectionedItemTemplate) | A template that contains sections of items like rows, grid items, etc. |\n| [SignInTemplate](/reference/androidx/car/app/model/signin/SignInTemplate) | A template that can be used to create a sign-in flow. |\n| [TabTemplate](/reference/androidx/car/app/model/TabTemplate) | A template representing a list of tabs and contents for the active tab. |\n\n*** ** * ** ***\n\nAn interface used to denote a model that can act as a root for a tree of other models."]]