Android Architecture Components 勉強会 Report 2019 #gdgtokyo

Shoko Sato
GDG Tokyo
Published in
4 min readJul 22, 2019
講師は、GDE for Android あんざいゆきさんえがわさんわさびーふさん、Google あらきさん

We held “Android Architecture Components #5~#8” at from March to July in Google Japan office. This event is a place where Android developers can study Android Architecture Components from Googler and Google Developer Experts.

3月から7月にかけてGoogle Japanオフィスで“Android Architecture Components #5~#8を開催しました。
AndoriodエンジニアがGoogle社員とGoogle Developer ExpertからAndroid Architecture Components について学べる勉強会です。
毎回多くの方にご参加いただき、昨年から合わせると全8回目を終えることができました。
ご参加頂きました皆様、本当にありがとうございます!
本レポートでは、今年開催しました第5回〜第8回の勉強会の内容について資料をまとめております。Android Architecture Componentsの学習に是非ご活用ください。

What’s Android Architecture Components?

Android architecture components are a collection of libraries that help you design robust, testable, and maintainable apps. Start with classes for managing your UI component lifecycle and handling data persistence.

Android Architecture Components は Android アプリの設計をよりよいものにするために Google が公開しているライブラリです。
詳しい内容に関しては、公式サイトをご覧ください。

昨年は第1回から第4回まで全4回開催しました。
(※タイトルはconnpassイベントページのリンクとなります)

そして、今年は昨年に引き続き、第5回から第8回までの全4回を開催することができました。

第5回: Lifecycle, ViewModel, LiveData の復習

Lifecycle, ViewModel, LiveData の復習です。
第1回から第3回までに取り上げた Lifecycle, ViewModel, LiveData の内容をおさらいします。

Lifecycle
Lifecycle-aware components perform actions in response to a change in the lifecycle status of another component, such as activities and fragments. These components help you produce better-organized, and often lighter-weight code, that is easier to maintain. See the reference docs for more information.

ViewModel
The ViewModel class is designed to store and manage UI-related data in a lifecycle conscious way. TheViewModel class allows data to survive configuration changes such as screen rotations.
LiveData
LiveData is an observable data holder class. Unlike a regular observable, LiveData is lifecycle-aware, meaning it respects the lifecycle of other app components, such as activities, fragments, or services. This awareness ensures LiveData only updates app component observers that are in an active lifecycle state.

※イベントページはこちら

講師:Yuki Anzai さん
Lifecycle, ViewModel, LiveDataについて解説中
みなさん集中して課題に取り組まれています
参会者の質問に対して一つ一つ丁寧に回答します

第6回: Room の復習、Paging

第6回のテーマは Room の復習と Pagingライブラリです。 第4回に取り上げたデータベースライブラリの簡単なおさらいをした後、去年から今年にかけて正式版になった Paging ライブラリを詳しく見ていきます。

Paging
The Paging Library makes it easier for you to load data gradually and gracefully within your app’s RecyclerView. See the reference docs for more information.

※イベントページはこちら

※課題で使用したコード

講師:Youichi Arakiさん

Room の復習と Paging ライブラリについて解説中
質問は目があった人に当てていくスタイルの荒木さん

第7回: WorkManager

第7回のテーマは WorkManager ライブラリです。

WorkManager
WorkManager is a library used to enqueue deferrable work that is guaranteed to execute sometime after its Constraints are met. WorkManager allows observation of work status and the ability to create complex chains of work.

※イベントページはこちら

講師:Takashi EGAWA さん

イベント中にえがわさんからGDEの募集もありました!

第8回: Navigation

第8回のテーマは Navigationです。

Navigation
Navigation refers to the interactions that allow users to navigate across, into, and back out from the different pieces of content within your app. Android Jetpack’s Navigation component helps you implement navigation, from simple button clicks to more complex patterns, such as app bars and the navigation drawer. The Navigation component also ensures a consistent and predictable user experience by adhering to an established set of principles.

※イベントページはこちら

講師:Wasabeef さん

※課題で使用したコード

Navigationについて解説中
皆さん真剣に話を聞いています

最後に

第8回のAndroid Architecture Components勉強会で今年最後のAAC開催となりました。

今年最後の開催ということで、荒木さんよりご挨拶いただきました

「”Android Architecture Components” を詳しく勉強していきたい!」
そのようなご要望にお答えできるよう、今後も勉強会の開催を続けていきたいと思っています。
今回の勉強会の内容に関して、万が一不明点等ございましたら、講師の皆様にTwitter等でご質問いただければ、出来る限り回答させて頂きます。
※GDG TokyoのTwitterはDMを解放しております。お気軽にお問い合わせください。

来年、Google新社屋(渋谷)で開催出来ることをお楽しみにお待ちください。AACで皆様とお会いできることを心より楽しみにしております。

ご参加いただきましたエンジニアの皆様、ご協力いただきましたチューターの皆様、本当にありがとうございました!

Goodbye ドロイド君

--

--

Shoko Sato
GDG Tokyo

DevRel at LINEヤフー | Organizer of GDG Tokyo & WTM Tokyo | Community Manager at OutSystems