Android Jetpack

Android Jetpack

# Events
umeda.apk #4
https://shibuya-apk.connpass.com/event/88738/
hakata.apk #1
https://shibuya-apk.connpass.com/event/88745/

# Links

Modern Android development : Android Jetpack, Kotlin, and more
https://www.youtube.com/watch?v=IrMw7MEgADk

Android Jetpack: how to smartly use Fragments in your UI
https://www.youtube.com/watch?v=WVPH48lUzGY

Android Jetpack: what's new in Architecture Components
https://www.youtube.com/watch?v=pErTyQpA390

Android Jetpack: what's new in Android Support Library
https://www.youtube.com/watch?v=jdKUm8tGogw

Android Jetpack: easy background processing with Work Manager
https://www.youtube.com/watch?v=IrKoBFLwTN0

Android Jetpack : managing UI navigation with Navigation Controller
https://www.youtube.com/watch?v=8GCXtCjtg40

Android Jetpack: sweetening Kotlin development with Android KTX
https://www.youtube.com/watch?v=st1XVfkDWqk

Android Jetpack : managing infinite lists with RecyclerView & Paging
https://www.youtube.com/watch?v=BE5bsyGGLf4

How to Kotlin - from the Lead Kotlin Language Designer
https://www.youtube.com/watch?v=6P20npkvcb8

What's new with ConstraintLayout and Android Studio desing tools
https://www.youtube.com/watch?v=ytZteMo4ETk

B0f8177e3259f29952640f98bf795965?s=128

satorufujiwara

June 07, 2018
Tweet

Transcript

  1. Android Jetpack from Google I/O 2018 2018.06.07 umeda.apk 2018.06.08 hakata.apk

    @satorufujiwara
  2. About me Satoru Fujiwara (@satorufujiwara) Android Engineer @CyberAgent ,Inc Organizer

    of Shibuya.apk ༁ॻ : Kotlin ΠϯɾΞΫγϣϯ ஶॻ : Android ΞϓϦઃܭύλʔϯೖ໳
  3. Android Jetpack

  4. ը૾ : https://android-developers.googleblog.com/2018/05/use-android-jetpack-to-accelerate-your.html

  5. Android Jetpackͱ͸ • ྑ͍ΞϓϦΛૣ͘؆୯ʹͭ͘ΔͨΊͷɺϥΠϒϥϦ΍πʔϧ΍ ઃܭࢦ਑ • Foundation (جຊ)ɺArchitecture (ΞϓϦઃܭ)ɺBehavior (ಈ

    ࡞)ɺUIͷ4ͭʹ෼ྨ͞Ε͍ͯΔ • Support Library΍Architecture Components΋ؚ·ΕΔ ը૾ : https://developer.android.com/jetpack/
  6. What’s new in Android Jetpack • WorkManager • Navigation •

    Paging • Slices • Android KTX ը૾ : https://android-developers.googleblog.com/2018/05/use-android-jetpack-to-accelerate-your.html
  7. What’s new in Android Jetpack • WorkManager • Navigation •

    Paging • Slices • Android KTX
  8. WorkManager • όοΫάϥ΢ϯυॲཧΛߦ͏ͨΊͷϥΠϒϥϦ • ը૾ͷΞοϓϩʔυͷΑ͏ͳɺΞϓϦΛऴྃͯ͠΋ܧଓ͍ͨ͠ ॲཧʹ࢖͏ • ΞϓϦΛऴྃͨ͠৔߹ʹதஅ͍ͨ͠ॲཧʹ͸ThreadPool΋͘͠ ͸RxJavaΛ࢖͏

  9. WorkManager • ಺෦తʹ͸JobScheduler or Firebase JobDispatcher or AlarmManager͕࢖ΘΕΔ ը૾ :

    https://www.youtube.com/watch?v=IrKoBFLwTN0
  10. WorkManagerͷ࣮ߦྫ

  11. What’s new in Android Jetpack • WorkManager • Navigation •

    Paging • Slices • Android KTX
  12. Navigation • ୯ҰActivity಺ͷFragmentͷը໘ભҠ (Fragment Transaction)Λ ߦ͏ϑϨʔϜϫʔΫ • ม਺(Bundle)ͷड͚౉͠Up/Backͷ੍ޚ΍Deep Links΋ఆٛ͢Δ ͜ͱ͕Ͱ͖Δ

    • Android Studio 3.2 ͔Βಋೖ͞ΕͨNavigation EditorΛ࢖͍ฤू ͢Δ
  13. Navigation Editor ը૾ : https://android-developers.googleblog.com/2018/05/use-android-jetpack-to-accelerate-your.html

  14. Navigation Editor • ฤू݁Ռ͸XMLͰอଘ͞ΕΔ

  15. Navigation • ίʔυ͔Β͸NavigationControllerͳͲΛ༻͍ͯભҠΛݺͼग़͢

  16. What’s new in Android Jetpack • WorkManager • Navigation •

    Paging • Slices • Android KTX
  17. Paging • Architecture ComponentsͷPagingͷStableόʔδϣϯ͕ग़ͨ • RecyclerViewʹද͍ࣔͯ͠Δσʔλͷʮଓ͖ΛಡΈࠐΉʯϥΠϒ ϥϦ • ಡΈࠐΈઌ͸ωοτϫʔΫɺσʔλϕʔεɺ·ͨ͸ͦͷ྆ํ

  18. What’s new in Android Jetpack • WorkManager • Navigation •

    Paging • Slices • Android KTX
  19. Slices • Googleݕࡧ(ࠓޙ͸GoogleΞγελϯτͳͲʹ΋)ʹΞϓϦͷί ϯςϯπΛදࣔ͢ΔͨΊͷUIςϯϓϨʔτ • Android 4.4(API 19)Ҏ߱Ͱ࢖͑Δ

  20. Slicesͷྫ ը૾ : https://www.youtube.com/watch?v=a7IVH5aNwwc

  21. What’s new in Android Jetpack • WorkManager • Navigation •

    Paging • Slices • Android KTX
  22. Android-KTX • AndroidͷAPIΛKotlin͔Β࢖͍΍͘͢͢ΔͨΊͷKotlinͷ֦ுؔ ਺܈ • طʹόʔδϣϯ0.3.0͕ެ։͞Ε͍͕ͯͨɺ1.0.0-alpha1͕ެ։͞ Εͨ • Android FrameworkҎ֎ͷϥΠϒϥϦʹରԠ֦ͨ͠ுؔ਺͕ଟ

    ͘௥Ճ͞Ε͍ͯΔ
  23. Android KTX 1.0.0-alpha1 ը૾ : https://www.youtube.com/watch?v=st1XVfkDWqk

  24. Android KTXͷྫ

  25. BTW : Kotlinʹ͍ͭͯ • KotlinΛ࢖ͬͨPlayStore্ͷΞϓϦ͸ࡢ೥ൺͰ6ഒʹ • σΟϕϩούʔͷ35ˋ͕KotlinΛ࢖͓ͬͯΓɺຖ݄૿Ճ͍ͯ͠Δ • Android DevelopersͷυΩϡϝϯτ΋KotlinରԠ൛͕ఏڙ͞ΕΔ

    Α͏ʹͳͬͨ
  26. googlesamples/android-sunflower Android JetpackΛ;ΜͩΜʹ࢖ͬͨαϯϓϧΞϓϦ

  27. • Modern Android development : Android Jetpack, Kotlin, and more

    • https://www.youtube.com/watch?v=IrMw7MEgADk • Android Jetpack: how to smartly use Fragments in your UI • https://www.youtube.com/watch?v=WVPH48lUzGY • Android Jetpack: what's new in Architecture Components • https://www.youtube.com/watch?v=pErTyQpA390 • Android Jetpack: what's new in Android Support Library • https://www.youtube.com/watch?v=jdKUm8tGogw • Android Jetpack: easy background processing with Work Manager • https://www.youtube.com/watch?v=IrKoBFLwTN0 • Android Jetpack : managing UI navigation with Navigation Controller • https://www.youtube.com/watch?v=8GCXtCjtg40 • Android Jetpack: sweetening Kotlin development with Android KTX • https://www.youtube.com/watch?v=st1XVfkDWqk • Android Jetpack : managing infinite lists with RecyclerView & Paging • https://www.youtube.com/watch?v=BE5bsyGGLf4
  28. AndroidX

  29. AndroidX • ৽͍͠AndroidͷόʔδϣϯͰ͸͋Γ·ͤΜ :-) • Support LibraryͳͲͷύοέʔδΛϦϑΝΫλϦϯάͨ͠΋ͷ • OSʹόϯυϧ͞Εͳ͍Androidͷ֦ுϥΠϒϥϦ •

    Jetpackʹ͸AndroidXʹؚ·ΕΔ΋ͷ΋͋Δ͠ɺؚ·Εͳ͍΋ͷ ΋͋Δ
  30. AndroidX ͷϦϑΝΫλϦϯά • ύοέʔδΛϦϑΝΫλϦϯά • com.android.support.** → androidx.** • android.databinding.**

    → androidx.databinding.** • android.arch.** → androidx.arch.core.** • v4΍v7ͳͲͷදه͕ফ͑Δ • όʔδϣϯ͕28.0.0͔Β1.0.0ʹϦηοτ͞ΕΔ • ؅ཧ΋ݫີʹ (ϝδϟʔόʔδϣϯ͕ಉ͡ͳΒޓ׵ੑ͋Γ)
  31. AndroidX΁ͷҠߦ • Android StudioʹϦϑΝΫλϦϯάπʔϧ͕ఏ ڙ͞ΕΔ • ࢖͍ͬͯΔϥΠϒϥϦͷJAR/AARΛม׵͢Δ Jetifierͱ͍͏πʔϧ΋ఏڙ͞ΕΔ ը૾ :

    https://android-developers.googleblog.com/2018/05/hello-world-androidx.html
  32. One more thing

  33. MotionLayout • ConstraintLayout 2.2 ͔Βಋೖ͞ΕΔConstraintLayoutͷαϒΫϥ ε • Viewͷঢ়ଶ(ConstraintSet)ؒΛΞχϝʔγϣϯΛ࢖ͬͯಈ͔͢͜ ͱ͕Ͱ͖Δ •

    What's new with ConstraintLayout and Android Studio desing tools • https://www.youtube.com/watch?v=ytZteMo4ETk
  34. Motion Editor ը૾ : https://www.youtube.com/watch?v=ytZteMo4ETk

  35. Thank you!