State holders and state production in the UI Layer

48 817
21.9
Следующее
Популярные
67 дней – 4 2610:35
Building for the future of Android
Опубликовано 25 октября 2022, 16:00
The UI layer displays application data on the screen. But how is it done exactly? We dive deep into the UI state production pipeline and state holders that manage UI complexity. Get to know the differences between UI and business logic, a ViewModel and a plain state holder class, state and events, and more! What is all that, when to use which, and how to do it.

Resources:
Guide to app architecture → goo.gle/mad-architecture-guide
UI layer → goo.gle/architecture-ui-layer
State holders and UI State → goo.gle/architecture-state-hol...
UI State production → goo.gle/architecture-uistate-p...
UI events → goo.gle/architecture-ui-events
ViewModel overview → goo.gle/architecture-viewmodel
Architecture recommendations → goo.gle/architecture-recomenda...

0:00 - Introduction
1:37 - Types of UI state
2:24 - Types of logic
4:25 - How state and logic relate to each other
4:50 - Where to handle logic
5:10 - ViewModels
8:55 - Plain state holder classes
11:35 - Identifying state holders in the UI
13:08 - Should you use ViewModels?
14:20 - Producing screen UI state
15:03 - Local sources of state change
16:07 - External sources of state change
16:56 - Combining local and external sources
18:15 - Collect state in a lifecycle-aware manner
18:40 - Modelling screen UI state based on inputs
19:34 - Recap

Speaker: Manuel Vicente Vivo

Watch more:
Watch all the Android Dev Summit sessions → goo.gle/ADS-All
Watch all the Modern Android Development sessions → goo.gle/ADS-MAD

Subscribe to Android Developers → goo.gle/AndroidDevs

#Featured #AndroidDevSummit #Android
автотехномузыкадетское