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

Androidアプリにおける複雑な画面と向き合うための設計戦略

kazakago
November 14, 2018

 Androidアプリにおける複雑な画面と向き合うための設計戦略

kazakago

November 14, 2018
Tweet

More Decks by kazakago

Other Decks in Programming

Transcript

  1. • ֓೦্ͷηΫγϣϯผʹFragmentʹ෼ղ • Activity͸FragmentΛ഑ஔ͢Δ͚ͩʹప͢Δ • MVP -> MVVMύλʔϯ΁ͷҠߦ • Android

    Architecture Componentsͷ ViewModel, LiveDataͷ࠾༻ • Java -> Kotlin΁ͷҠߦ • CleanArchitectureͷపఈʹΑΔPresentation ૚ͷϩδοΫͷഉআ • Kotlin CoroutinesʹΑΔasync/awaitͷ࠾༻
  2. MyProfileTopPresenter … 875 line -> MyProfileTopActivity … 1712 line ->

    MyProfileTop**Fragment … MyProfileTopViewModel … 7JFX.PEFM͸ߦ਺ͦ͜ଟ͍͕ɺ΄΅͢΂ͯͷ ϩδοΫΛυϝΠϯ૚΁Ҡৡ͍ͯ͠ΔͨΊɺ ΄ͱΜͲͷϝιου͕ߦҎԼʹ཈͑ΒΕͨ 242 line! Deleted! 168 average line! 936 line