Available View Slots
How It Works
- Kotlin (XML Views)
- Jetpack Compose
Each list-based component defines a
ViewHolderListener abstract class with two callbacks:Pass the listener to the component via
setLeadingView(), setTitleView(), setSubtitleView(), setTrailingView(), or setItemView().Example: Custom Leading View
Replace the default avatar with a custom view showing the first letter of the conversation name.- Kotlin (XML Views)
- Jetpack Compose
Example: Custom Subtitle View
Show a custom last message format in the subtitle area.- Kotlin (XML Views)
- Jetpack Compose
Toolbar Overflow Menu
Inject a custom view into the componentβs toolbar area. This is separate from list item view slots.- Kotlin (XML Views)
- Jetpack Compose
Components with View Slots
View slots are available on all list-based components:Related
- Styles β Customize visual appearance without replacing views.
- Customization Overview β See all customization categories.