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 custom layouts or restyle the default ones.

Replacing State Views

Each state view setter accepts an Android layout resource ID (@LayoutRes int). The component inflates the layout when the corresponding state is triggered.

Example: Custom Empty State

Create a custom layout:
Set it on the component:

State Visibility Controls

Hide or show specific state views entirely:

Restyling Default State Views

If you want to keep the default state layout but change its appearance, use the text customization setters:

Empty State

Error State