Model Android UI state

Decide which user-visible state to show when the app receives a successful response with zero results.

Examples

Example 1

Input
Success with zero entries
Expected output
Empty view

Hints and solution

Hint 1

A completed request no longer needs a progress indicator.

Reveal worked answer

Render an empty state that explains there are no entries and, where relevant, offers the next action. A loading state would suggest that more data is on the way.

Back to the lesson