~/talk

ACTIVITIES AND FRAGMENTS ARE NOT MVX VIEWS

Talkat droidcon Berlin 2018 · 2018-06-25..06-27· [frontend-architecture, android]
links:none on file
slides:none on file

Argues that Activities and Fragments should not be the MVx view but should hand UI work to standalone view classes, so extract UI logic into standalone view classes and make Activity/Fragment the lifecycle-focused controller that handles lifecycle and navigation. Shows a small API: bind/unbind, getRootView, listener registration, and reuses view classes as list item renderers to avoid viewholder hacks. Benefits: true decoupling, easier outsourcing and reuse, simpler unit testing; cost: more boilerplate and a mental model shift.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 1:51Personal journey with Android architecture
  3. 3:38Understanding MVX patterns
  4. 6:47History of MVC and MVP on Android
  5. 8:59Joshua Bloch’s breakthrough with MVC
  6. 10:45Key advantage of MVX: decoupling UI logic
  7. 13:59Why UI logic should be decoupled
  8. 18:10Problems with UI logic in Activities
  9. 22:49Activities as controllers not views
  10. 26:22Extracting UI logic from Activities
  11. 29:59Advantages of decoupled UI logic
  12. 33:37Costs and challenges of the approach
  13. 35:42Why this MVX is battle-tested
  14. 37:49Fragments and final thoughts
~/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.