Android Architecture Views Cheat Sheet

MVVM, LiveData, and flows

Last Updated: November 21, 2025

Focus Areas

Focus
Expose immutable flows
Collect in Compose with lifecycle

Commands & Queries

viewModelScope.launch { ... }
Launch coroutine
viewModel.state.collectAsState()
Collect state
mutableStateOf
Hold Compose state

Summary

Clear architecture keeps Android UI reactive and testable.

💡 Pro Tip: Keep logic in ViewModels and observe states in Compose.
← Back to Web Frameworks | Browse all categories | View all cheat sheets