What are UI states?
We humans have different reactions to situations we are being faced with at any particular time so does a digital product and this reaction to user interactions is called U.I states. Depending on the context, these states are revealed to the user.
What is UI state in Android?
The UI state is application data transformed by the ViewModel. The UI notifies the ViewModel of user events. The ViewModel handles the user actions and updates the state. The updated state is fed back to the UI to render.
What is focus state in UI?
A focused state communicates when a user has highlighted an element using a keyboard or voice. Focus states apply to all interactive components. They should receive high emphasis, as they are not indicated by other visual cues.