Stay organized with collections
Save and categorize content based on your preferences.
@CarProtocol
public interface Item
Known direct subclasses
ConversationItem |
Represents a text-based conversation (e.g. IM/SMS messages).
|
GridItem |
Represents a grid item with an image and an optional title.
|
Row |
Represents a row with a title, several lines of text, an optional image, and an optional action or switch.
|
Interface implemented by models that can be added to an ItemList
.
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.
[null,null,["Last updated 2025-05-15 UTC."],[],[],null,["# Item\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/Item.java+class:androidx.car.app.model.Item) \nAdded in [1.0.0](/jetpack/androidx/releases/car-app#1.0.0)\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/androidx/car/app/model/Item \"View this page in Kotlin\") \\|Java\n\n\n```\n@CarProtocol\npublic interface Item\n```\n\n\u003cbr /\u003e\n\nKnown direct subclasses \n[ConversationItem](/reference/androidx/car/app/messaging/model/ConversationItem), [GridItem](/reference/androidx/car/app/model/GridItem), [Row](/reference/androidx/car/app/model/Row) \n\n|----------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------|\n| [ConversationItem](/reference/androidx/car/app/messaging/model/ConversationItem) | Represents a text-based conversation (e.g. IM/SMS messages). |\n| [GridItem](/reference/androidx/car/app/model/GridItem) | Represents a grid item with an image and an optional title. |\n| [Row](/reference/androidx/car/app/model/Row) | Represents a row with a title, several lines of text, an optional image, and an optional action or switch. |\n\n*** ** * ** ***\n\nInterface implemented by models that can be added to an [ItemList](/reference/androidx/car/app/model/ItemList)."]]