Skip to main content
Components display state views when the list is empty, an error occurs, or data is loading. You can replace these with your own custom views.

State Types


Replacing State Views

Each component accepts a View? for each state:
Example custom empty layout:
res/layout/custom_empty_state.xml

Hiding State Views

Components like CometChatMessageList provide explicit hide methods:
For components that don’t have dedicated hide methods (e.g., CometChatConversations), pass null to remove a custom state view:

Components with State Views

State views are available on all list-based components: