Implementing Modern Android Architecture
summary
Concrete implementation of the Now in Android open‑source app demonstrates a layered UI/domain/data architecture with repositories, Room as the local single source of truth, and Flow/StateFlow for reactive streams. UI state is composed by combining flows and exposed via stateIn with whileSubscribed(5s) to free resources; the UI collects it with collectAsStateWithLifecycle. ViewModels hold business logic and screen state, plain stateholder classes hold UI logic and hoisted element state; user-facing events are modeled as state (nullable userMessage) and acknowledged by the UI.
AI-written summary · about
chapters (9)
- 0:00Welcome and intro
- 1:54Why architecture matters
- 6:50Core architecture principles
- 13:50Layered architecture overview
- 17:23Data layer implementation
- 20:11UI layer and state management
- 24:07UI logic and state at scale
- 35:01Handling UI events
- 43:07Domain layer and closing
related talks
38mArchitecture Agnostic UI Development
37mPeeling Back the Layers: Unmasking the UI-nknown!
40mClean, Easy & Stable Android Architecture
22mBuilding a scalable, modularized, testable app from scratch
39mClean app design with Architecture Components
07mInterview with
47mClean app design with Architecture Components
41mViewModels, LiveData and Lifecycles, oh my!
