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

Jetpack Compose best practices 動画紹介 @GoogleI/O LT会

D46ece3c06abca01b4920592f80c0ba4?s=47 Tojo
June 24, 2022

Jetpack Compose best practices 動画紹介 @GoogleI/O LT会

GoogleI/O 2022 より、Jetpack Compose best practicesのセッション動画の解説を社内LT用にまとめたものです。

D46ece3c06abca01b4920592f80c0ba4?s=128

Tojo

June 24, 2022
Tweet

Other Decks in Programming

Transcript

  1. ɹ50+0ɹ +FUQBDL$PNQPTF CFTUQSBDUJDFT https://developer.android.com/jetpack/compose/performance ެࣜυΩϡϝϯτc$PNQPTFͷύϑΥʔϚϯε ʹ 🌝 (PPHMF*0 1FSGPSNBODFCFTUQSBDUJDFTGPS+FUQBDL$PNQPTF IUUQTXXXZPVUVCFDPNXBUDI

    W&02#15-LQ:UT
  2. SFNFNCFS\^ -B[Z-JTULFZ EFSJWFE4UBUF0G\^ ಡΈऔΓͷԆظ ٯํ޲ॻ͖ࠐΈͷճආ #BTFMJOF1SP fi MFT ϦϦʔεϞʔυͰϏϧυ͢Δ ಈըͷߏ੒

    ࣮૷ͷ࿩ ΞϓϦߏ੒ͷ࿩ ύϑΥʔϚϯεʹؔ͢Δ ̓ͭͷΩʔϫʔυ
  3. SFNFNCFS\^ -B[Z-JTULFZ EFSJWFE4UBUF0G\^ ಡΈऔΓͷԆظ ٯํ޲ॻ͖ࠐΈͷճආ #BTFMJOF1SP fi MFT ϦϦʔεϞʔυͰϏϧυ͢Δ ಈըͷߏ੒

    ࣮૷ͷ࿩ -5Ͱ͸ ͚ͩ͜͜঺հ͠·͢ʂ ΞϓϦߏ੒ͷ࿩ $PNQPTJUJPOͱ3FDPNQPTJUJPOͷ ࢓૊ΈΛཧղ͍ͯ͠Δਓ޲͚ͷ಺༰Ͱ͢ 🙏
  4. SFNFNCFS\^ ֮͑Δࢥ͍ग़͢

  5. ྑ͘ͳ͍ίʔυ %PO`U Ҿ༻ɿIUUQTZPVUVCF&02#15-LQ: U

  6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4UBUF0G\^Λ࢖͓͏ %P

  17. EFSJWFE4UBUF0G\^Λ࢖͓͏ %P ͋Δঢ়ଶ͔Β৽͍͠ঢ়ଶΛܭࢉ͢Δͱ͖ʹར༻͢Δ ೿ੜݩͷঢ়ଶ͕มԽͨ͠ͱ͖͚ͩ৽͍͠ঢ়ଶ͕ࢉग़͞ΕΔ EFSJWFE4UBUF0G\^͸

  18. ಡΈऔΓͷԆظ 4UBUF5WBMVFͷಡΈऔΓλΠϛϯάͷݟۃΊ

  19. %PO`U ྑ͘ͳ͍ίʔυ Ҿ༻ɿIUUQTZPVUVCF&02#15-LQ: U

  20. %PO`U $PNQPTJUJPO -BZPVU %SBX ͲͷΑ͏ͳ6*Λ දࣔͤ͞Δ͔ Ͳ͜ʹ6*Λ ഑ஔ͢Δ͔ 8IBU 8IFSF

    )PX ͲͷΑ͏ʹ6*Λ ϨϯμϦϯά͢Δ͔ ը໘ʹ6*͕ग़Δ·ͰͷͭͷϑΣʔζ ྑ͘ͳ͍ίʔυ
  21. %PO`U $PNQPTJUJPO -BZPVU %SBX ը໘ʹ6*͕ग़Δ·ͰͷͭͷϑΣʔζ ͲͷΑ͏ͳ6*Λ දࣔͤ͞Δ͔ Ͳ͜ʹ6*Λ ഑ஔ͢Δ͔ 8IBU

    8IFSF )PX ͲͷΑ͏ʹ6*Λ ϨϯμϦϯά͢Δ͔ ಡΈऔΔ $PMPS͕มԽ͢Δ౓ʹ ࠷ॳͷϑΣʔζ͔Β ࠶࣮ߦ͞Εͯ͠·͏ ྑ͘ͳ͍ίʔυ
  22. ಡΈऔΓͷԆظΛ࢖͓͏ %P

  23. ಡΈऔΓͷԆظΛ࢖͓͏ %P $PNQPTJUJPO -BZPVU %SBX ͲͷΑ͏ͳ6*Λ දࣔͤ͞Δ͔ Ͳ͜ʹ6*Λ ഑ஔ͢Δ͔ 8IBU

    8IFSF )PX ͲͷΑ͏ʹ6*Λ ϨϯμϦϯά͢Δ͔ $PMPS͕มԽ͢Δ౓ʹ %SBXϑΣʔζ͚͕ͩ ࠶࣮ߦ͞ΕΔ ಡΈऔΓ ը໘ʹ6*͕ग़Δ·ͰͷͭͷϑΣʔζ
  24. SFNFNCFS\^ -B[Z-JTULFZ EFSJWFE4UBUF0G\^ ಡΈऔΓͷԆظ ٯํ޲ॻ͖ࠐΈͷճආ #BTFMJOF1SP fi MFT ϦϦʔεϞʔυͰϏϧυ͢Δ ಈըͷߏ੒

    ࣮૷ͷ࿩ ̑͸ΠϕϯτͷίʔϧόοΫͰ ঢ়ଶΛߋ৽͠Α͏ͱ͍͏؆୯ͳ࿩ ΞϓϦߏ੒ͷ࿩ https://developer.android.com/jetpack/compose/performance ެࣜυΩϡϝϯτc$PNQPTFͷύϑΥʔϚϯε υΩϡϝϯτΛಡΜͰ͍ͩ͘͞
  25. Ҏ্ɻ +FUQBDL$PNQPTFCFTUQSBDUJDFT ͷಈը঺հͰͨ͠🌞 هࣄ΋ࣥචதͰ͢📝

  26. ٯํ޲ॻ͖ࠐΈͷճආ

  27. %PO`U ྑ͘ͳ͍ίʔυ

  28. ٯํ޲ॻ͖ࠐΈΛճආ͠Α͏ %P