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:- Kotlin
- Java
State Visibility Controls
Hide or show specific state views entirely:- Kotlin
- Java
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
- Kotlin
- Java
Related
- Customization Overview — See all customization categories.