~/talk

Clean app design with Architecture Components

Talkat droidcon NYC 2017 · 2017-09-25..09-26· [android]
github:ecgreb
slides:none on file

Shows how Android Architecture Components—Lifecycle, ViewModel, LiveData, Room—slot into an existing clean architecture to solve lifecycle, state and persistence problems. Uses an MVP-style presenter for presentation logic, a ViewModel to persist user state across rotations, LiveData for lifecycle-aware observation, and Room to return LiveData from local cache; long-running network ops continue through config changes and results reattach to the UI. Testing strategy emphasizes fast JVM unit tests plus Robolectric and Espresso. presenter scoped to activity, ViewModel survives config changes

AI-written summary · about

  1. 0:00Introduction
  2. 1:56Clean architecture basics
  3. 6:29Separation of concerns
  4. 7:56State synchronization
  5. 8:58Testability and testing pyramid
  6. 12:07UI architectures overview
  7. 13:09MVC pattern
  8. 14:35MVP pattern
  9. 15:39MVVM pattern
  10. 17:44Choosing MVP for Android
  11. 18:26View vs Activity separation
  12. 20:10Login activity with MVP
  13. 24:09Android challenges
  14. 25:11Architecture Components intro
  15. 26:16Lifecycle and ViewModel
  16. 29:25ViewModel in presenter
  17. 30:31LiveData for state
  18. 31:37Room for persistence
  19. 33:03Long-running operations
  20. 34:05Full stack flow
  21. 35:54Resources and wrap-up
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.