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

Slice Your App

kobito-kaba
February 08, 2019

Slice Your App

Android JetpackのSlicesについてのあれこれ

kobito-kaba

February 08, 2019
Tweet

More Decks by kobito-kaba

Other Decks in Programming

Transcript

  1. 4MJDF:PVS"QQ
    JOTJEFTMJDFTBOEIPXUPCVJMEJU
    )JSPZVLJ.PSJ
    !NPSJESPJE

    View Slide

  2. 啾 峔⛒ !NPSJESPJE
    :BIPP+"1"/"OESPJE랲䌒
    ְֲֲֿהֿ׹ד鑧ׅ➬✲
    َؿؙؔ،فٔךꟚ涪
    㢌זخ٦ٕ׾הֹוֹ⡲׷

    View Slide

  3. ر٦ة

    View Slide

  4. ذأز
    鎘歗 㹋鄲
    ٔٔ٦أ
    ꧊鎘
    䖓㨣劣

    View Slide

  5. ر٦ة 邌爙䭷爙
    ر٦ة䭷爙 邌爙䭷爙

    View Slide

  6. 鎘歗 鏣㹀

    View Slide

  7. 6*JT㣐✲

    View Slide

  8. ،فٔ"
    ،فٔ#
    ،فٔ$
    

    View Slide

  9. 4MJDFT

    View Slide

  10. 
    
    
    
    

    View Slide

  11. ذٝفٖ٦ز⻉ׁ׸׋6*

    View Slide

  12. ؎ٝةؙٓذ؍ـ

    View Slide

  13. ،حفر٦ز〳腉

    View Slide

  14. 2VJDL"DDFTT

    View Slide

  15. 4MJDFTך➬穈׫

    View Slide

  16. فٗغ؎ت٦،فٔ
    
    مأز،فٔ
    
    
    

    View Slide

  17. فٗغ؎ت٦،فٔ
    
    مأز،فٔ
    
    
    

    View Slide

  18. فٗغ؎ت٦،فٔ
    
    مأز،فٔ
    
    
    
    

    View Slide

  19. فٗغ؎ت٦،فٔ
    
    
    
    مأز،فٔ
    
    

    View Slide

  20. فٗغ؎ت٦،فٔ
    
    
    
    مأز،فٔ
    
    

    View Slide

  21. فٗغ؎ت٦،فٔ
    
    
    مأز،فٔ
    
    
    

    View Slide

  22. 
      
     
     
      o
    
     
    ˘
    
    


    View Slide

  23. 4MJDFTה"QQ*OEFYJOH

    View Slide

  24. 'JSFCBTF"QQ*OEFYJOHך➬穈׫

    View Slide

  25.    
       
    ة؎زٕ׾Ⰵ⸂׃״ֲהׅ׷ה
    ذؗأزָ؟آؑأزׁ׸ג
    ֿךךָ涪遤ׁ׸׷
    
      
    

    View Slide

  26. 4MJDFTה'JSFCBTF"QQ*OEFYJOH

    View Slide

  27.    
       
    
    
    
    
    

    
      
    

    View Slide

  28. *OTJEF4MJDFT

    View Slide

  29. 4MJDF7JFXFS
    HPPHMQGJRJW

    View Slide

  30. 3FRVFTUJOH4MJDFT

    View Slide

  31.     
    
        
    
      
      
      
      


    

    View Slide

  32.   
       
        
        
     
    
    

    View Slide

  33.   
       
        
        
     
    
    

    View Slide

  34.   
       
        
        
     
    
    

    View Slide

  35.       
        
    

           
        
      
    

    

    View Slide

  36.     
         
        
      
      
      


    

    View Slide

  37.     
         
        
      
      
      


    

    View Slide

  38.     
         
        
      
      
      


    

    View Slide

  39.    
    
       
      
     
    
         
     

    View Slide

  40.    
    
       
      
     
    
         
     

    View Slide

  41.    
    
       
      
     
    
         
     

    View Slide

  42. $POUFOU1SPWJEFS$MJFOU

    View Slide

  43. View Slide

  44. $POUFOU1SPWJEFS$MJFOU
    ٥鸞ְ
    ٥׭׿וְֻׁ
    ٥أٖحسإ٦ؿדכזְ

    View Slide

  45.    
    
       
      
     
    
         
     

    View Slide

  46.    
    
            
      
        
       
          
     
       

    View Slide

  47.    
    ֿךأٓ؎أ׾邌爙ׅ׷ػ٦ىحءّٝ׾ثؑحؙ׃ג
      
       
    ػ٦ىحءָّٝזְז׵ծػ٦ىحءّٝ׾実׭׷欽ךأٓ؎أ邌爙
       

    ػ٦ىحءָّ֮ٝ׷ז׵أٓ؎أ׾⡲׏ג鵤ׅ
      

    View Slide

  48.       
      猱ד
     
     鸐⥋הַ饥׏׋׵
     娤ט
    
    הְֲ״ֲזⵖꣲךזַד׾ㄎע
     

    View Slide

  49.       
      猱ד
     
     鸐⥋הַ饥׏׋׵
     娤ט
    
    הְֲ״ֲזⵖꣲךזַד׾ㄎע
     

    View Slide

  50.       
      猱ד
     
     鸐⥋הַ饥׏׋׵
     娤ט
    
    הְֲ״ֲזⵖꣲךזַד׾ㄎע
     

    View Slide

  51. :PVS'JSTU4MJDF

    View Slide

  52. /FX0UIFS4MJDF1SPWJEFS

    View Slide

  53. 4UFQ 4MJDF1SPWJEFS׾㹋鄲ׅ׷

    View Slide

  54. 
    
    
    

    View Slide

  55.     
           
           
           
          
          

    View Slide

  56.  
       
    
    
    
    

    View Slide

  57.  
    
         
         ַ׵床ׁ׸׋ךػأ׾䫙ֹ⳿׃ג
     ךח㢌䳔׃ג鵤ׅ
    
    
    
    

    

    View Slide

  58. 
         
        
        
    
     



    

    View Slide

  59.  
    
    
    
          
    

    View Slide

  60.  
    
    
    
          أٓ؎أָؾٝו׭ׁ׸׋
          鍑ꤐׁ׸׋

    View Slide

  61. 4UFQ "OESPJE.BOJGFTUח鷄鎸ׅ׷

    View Slide

  62. 
    
    
    
    
    
    
    

    View Slide

  63. 4UFQ (PPHMF嗚稊ח㼎䘔ׅ׷΍
    $BOPOJDBM4MJDF

    View Slide

  64. 
    
     
    
    
    
    
    
    

    View Slide

  65.   
    嗚稊،فٔחػ٦ىحءّٝ׾➰♷ׅ׷
    
     
    חػ٦ىحءّٝ׾➰♷ׅ׷
    
     

    View Slide

  66. 4UFQ (PPHMF嗚稊ח㼎䘔ׅ׷Ύ
    (FOFSBM5FSNT

    View Slide

  67. 
    
    
    
    
      
      
       
    
    

    View Slide

  68.    
    
    
    و؎٥ؔ٦ؙءّٝ
    ؐؓحثٔأز Ⰵ劦⚥ ⳿ㅷ⚥
    
    
    

    View Slide

  69. 5JQT

    View Slide

  70. %FMBZJOH$POUFOU

    View Slide

  71.      
        
        
    
      
     

        
       

      
     


    View Slide

  72.      
        
        
    
      
     

        
       

      
     


    View Slide

  73.      
        
        
    
      
     

        
       

      
     


    View Slide

  74.      
        
        
    
      
     

        
       

      
     


    View Slide

  75.      
        
        
    
      
     

        
       

      
     


    View Slide

  76.      
        
        
    
      
     

        
       

      
     


    View Slide

  77.      
        
        
    
      
     

        
       

      
     


    View Slide

  78. 1SJNBSZ"DUJPO

    View Slide

  79.     
    
    
     
     
     

    
     
     
     

    

    View Slide

  80. View Slide

  81.     
    
    
     
     
     

    
     
     
     

    

    View Slide

  82.     
    
    
     
     
     

    
     
     
     
     

    

    View Slide

  83. 4MJDFTהذأز

    View Slide

  84. 
    
    猱⵸
    
    
    
    


    
    
    
    
    
    

    View Slide

  85. 
      
        
      

        
     
    

    
     
     

    View Slide

  86. 
    
    猱⵸
    
    
    
    


    
    
    
    
    
    

    View Slide

  87. 
    
    猱⵸
    
    
    
    


    
    
    
    
    
    

    View Slide

  88.   
        
      
      
        
      

    View Slide

  89. 4MJDFTךؖ؎سٓ؎ٝ

    View Slide

  90. View Slide

  91. ZPVUVCFM2I.CS+2

    View Slide

  92. תה׭

    View Slide

  93. • 6*JT㣐✲
    • 〢Ⱙ涸ז"1*׾⢪׏גְתׅ
    • 知⽃ח⡲׸׷״
    • (PPHMF嗚稊،فٔהַח׮⳿ׇ׷״

    View Slide

  94. 5IBOLZPV

    View Slide