MVVM & Unidirectional Data Flow

ARCHITECTURE › Patterns

How ViewModels expose immutable UI state and drive the View via unidirectional data flow.

MVVM and UDF are the backbone of Android's official architecture guidance, so interviewers use them to probe whether you can structure a screen cleanly. Expect to defend why the ViewModel holds no Android references, how state flows down while events flow up, and how a single immutable UI state class becomes the screen's source of truth. You will often be asked to model loading, error, and empty states without introducing inconsistent or duplicated state.

What this covers

Study this topic

Further reading