Guide to Android app architecture
Official docs outline
- Guide to app architecture
Separation of concerns, drive UI from models, single source of truth and unidirectional data flow.
- UI layer
UI state, state holders, ViewModel and UI elements.
- Domain layer
Optional use cases that encapsulate business logic.
- Data layer
Repositories, data sources and exposing data.
- Offline-first apps
Local source of truth, sync and conflict handling.
- UI events
Handling user and ViewModel events and one-off effects.
- Architecture recommendations
Best-practice recommendations for each layer.
- Modularization
Multi-module structure, coupling and cohesion.
Each section links to the official page. Titles and summaries by Extra Credit; the docs belong to their authors.