Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Brief of Android MVP Architecture

Elvis Lin
October 30, 2016

Brief of Android MVP Architecture

以 Google 官方範例簡介在 Android application 開發中如何實作 MVP Architecture

Elvis Lin

October 30, 2016
Tweet

More Decks by Elvis Lin

Other Decks in Programming

Transcript

  1. Fragment • The separation between Activity and Fragment fits nicely

    with this implementation of MVP. • the Activity is the overall controller that creates and connects views and presenters. • Tablet layout or screens with multiple views take advantage of the Fragments framework.
  2. ྯ㮆 component ᮷磪 • A contract defining the view and

    the presenter • An Activity which is responsible for the creation of fragments and presenters • A Fragment which implements the view interface. • A presenter which implements the presenter interface