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

Chrome Custom Tabs を導入した話

Chrome Custom Tabs を導入した話

Yuki Shiho

April 24, 2016
Tweet

More Decks by Yuki Shiho

Other Decks in Programming

Transcript

  1. $ISPNF$VTUPN5BCT
    Λಋೖͨ͠࿩
    ࢤำါل
    !TIJIPDIBO
    !QPUBUPUJQT

    View full-size slide

  2. ࢤำါلʢ͠΄Ώ͏͖ʣ
    גࣜձࣾαΠόʔΤʔδΣϯτ
    "OESPJEΤϯδχΞʹͳͬͯ̍೥
    (JU)VC!TIJIPDIBO
    5XJUUFS!TIJIPDIBOEFTV
    ࣗݾ঺հ

    View full-size slide

  3. ಋೖ·ͰͷܦҢ
    ֎෦ϦϯΫͲ͏͠Α͏ɾɾɾ
    8FC7JFXͭΒ͍
    ݄๭೔
    هࣄ໘ΛωΠςΟϒԽͯ͠

    View full-size slide

  4. ࣗ෼ͷΞϓϦͷ಺෦ίϯςϯπͷΑ͏ʹɺ8FCϖʔδ
    Λ$ISPNFͰ։͘͜ͱ͕Ͱ͖Δ
    ௥ՃɿWd
    NJO4%L7FSTJPOɿ
    $ISPNFͷόʔδϣϯɿWd
    ৚݅Λຬͨ͞ͳ͍৔߹͸ඪ४ϒϥ΢β
    $ISPNF$VTUPN5BCTʢʣ

    View full-size slide

  5. $ISPNF$VTUPN5BCTʢʣ

    View full-size slide

  6. $ISPNF$VTUPN5BCTʢʣ
    CustomTabsIntent.Builder intentBuilder =
    new CustomTabsIntent.Builder();
    intentBuilder.build()
    .launchUrl(context, url));
    compile 'com.android.support:customtabs:23.2.1'

    View full-size slide

  7. $VTUPN5BCT*OUFOU#VJMEFS
    TFU4IPX5JUMF CPPMFBO
    λΠτϧදࣔͷ༗ແ
    TFU5PPMCBS$PMPS JOU
    5PPMCBSͷ৭
    TFU4UBSU"OJNBUJPOT $POUFYU
    JOU JOU

    ։͘ࡍͷΞχϝʔγϣϯ
    TFU&YJU"OJNBUJPOT $POUFYU
    JOU JOU
    ด͡ΔࡍͷΞχϝʔγϣϯ
    TFU$MPTF#VUUPO*DPO #JUNBQ
    ด͡ΔΞΠίϯ
    TFU"DUJPO#VUUPO #JUNBQ
    4USJOH 1FOEJOH*OUFOU

    5PPMCBS্ͷΞΫγϣϯϘλϯ
    BEE.FOV*UFN 4USJOH
    1FOEJOH*OUFOU

    ϝχϡʔ಺ͷΞΠςϜ

    View full-size slide

  8. ઌಡΈͰىಈΛߴ଎Խ
    $ISPNFϦϙδτϦͷIFMQFS͕ศར
    IUUQTHJUIVCDPN(PPHMF$ISPNF
    DVTUPNUBCTDMJFOUUSFFNBTUFSEFNPT
    IUUQTHJUIVCDPN(PPHMF$ISPNF
    DVTUPNUBCTDMJFOUUSFFNBTUFSTIBSFE
    αϯϓϧ
    IUUQTHJUIVCDPNIJUIFSFKPF5BCCZ
    QSFGFUDI

    View full-size slide

  9. #PUUPN/BWJHBUJPO
    Լʹ࠷େͭ·ͰΞΫγϣϯϘλϯΛஔ͚Δ
    ௥ՃɿWd
    $ISPNFͷόʔδϣϯɿWd
    ৚݅Λຬͨ͞ͳ͍৔߹͸ͳʹ΋දࣔ͞Εͳ͍
    4FDPOEBSZ5PPMCBSʢʣ

    View full-size slide

  10. 4FDPOEBSZ5PPMCBSʢʣ
    TFU4FDPOEBSZ5PPMCBS$PMPS !
    $PMPS*OU*OU

    4FDPOEBSZ5PPMCBSͷ৭
    BEE5PPMCBS*UFN JOU #JUNBQ
    4USJOH 1FOEJOH*OUFOU

    ΞΠςϜͷ௥Ճ

    View full-size slide

  11. 4FDPOEBSZ5PPMCBSʢʣ

    View full-size slide