Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
intro to navigation
Search
Shinnosuke Kugimiya
May 29, 2018
Programming
1
270
intro to navigation
Google IO 2018報告会。
Androidでの navigation というライブラリの発表です。
Shinnosuke Kugimiya
May 29, 2018
Tweet
Share
More Decks by Shinnosuke Kugimiya
See All by Shinnosuke Kugimiya
UIテストはもうMaestroでいいのかもしれない話
kgmyshin
22
12k
新規開発を始めるときにやるべきこと
kgmyshin
19
8.7k
android app error handling
kgmyshin
1
1.4k
solid+cqs+dry
kgmyshin
35
9.8k
Paging Library ~ アイテムの更新 ~
kgmyshin
2
3.2k
KotlinでReact Native(expo) を使いたい
kgmyshin
2
1.1k
新規チームで新規開発を始める時にやること
kgmyshin
40
8.4k
android-multi-module-with-dagger
kgmyshin
10
6k
kotlin linter
kgmyshin
12
15k
Other Decks in Programming
See All in Programming
Click-free releases & the making of a CLI app
oheyadam
2
110
タクシーアプリ『GO』のリアルタイムデータ分析基盤における機械学習サービスの活用
mot_techtalk
4
620
破壊せよ!データ破壊駆動で考えるドメインモデリング / data-destroy-driven
minodriven
17
4.3k
ActiveSupport::Notifications supporting instrumentation of Rails apps with OpenTelemetry
ymtdzzz
1
200
LLM生成文章の精度評価自動化とプロンプトチューニングの効率化について
layerx
PRO
2
170
GitHub Actionsのキャッシュと手を挙げることの大切さとそれに必要なこと
satoshi256kbyte
5
420
色々なIaCツールを実際に触って比較してみる
iriikeita
0
320
Pinia Colada が実現するスマートな非同期処理
naokihaba
4
210
リアーキテクチャxDDD 1年間の取り組みと進化
hsawaji
1
200
RailsのPull requestsのレビューの時に私が考えていること
yahonda
5
2.8k
詳細解説! ArrayListの仕組みと実装
yujisoftware
0
550
Macとオーディオ再生 2024/11/02
yusukeito
0
340
Featured
See All Featured
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Building Adaptive Systems
keathley
38
2.3k
A better future with KSS
kneath
238
17k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
38
1.8k
VelocityConf: Rendering Performance Case Studies
addyosmani
325
24k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.5k
Designing for humans not robots
tammielis
249
25k
Documentation Writing (for coders)
carmenintech
65
4.4k
It's Worth the Effort
3n
183
27k
Making the Leap to Tech Lead
cromwellryan
133
8.9k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
250
21k
GitHub's CSS Performance
jonrohan
1030
460k
Transcript
© DMM.com !LHNZTIJO (PPHMF*0ࢀՃใࠂձ *OUSPUPOBWJHBUJPO
© DMM.com w LHNZTIJOఝٶ ͗͘Έ w "OESPJEΤϯδχΞ w %..DPNϥϘ$50ࣨॴଐ
w ݄͔Β ࣗݾհ
© DMM.com BHFOEB
© DMM.com w OBWJHBUJPOͱ w ͳʹ͕خ͍͠ͷ͔ʁ w ભҠάϥϑʹ͍ͭͯ w TBGFBSHTʹ͍ͭͯ
w ·ͱΊ BHFOEB
© DMM.com ͜ͷൃදͰઆ໌͠ͳ͍͜ͱ w OBWJHBUJPOͷࡉ͔͍ಋೖํ๏ w OBWJHBUJPOͷकΔ͖ݪଇ w %FFQ-JOLͷઃఆํ๏ w
#PUUPN/BWJHBUJPOͱ͔5PPMCBSͱ͔ͷ࿈ܞํ๏ w ͳͲͳͲࡉ͔͍༰
© DMM.com ͕͍࣌ؒͷͰʜ IUUQTJOTJEFENNDPNFOUSZBOESPJEOBWJHBUJPO ৄ͘͠ɺϒϩάΛݟΔ͔ɺ࠙ձͰ͔͚͍ͯͩ͘͠͞ʂ
© DMM.com ͜ͷൃදΰʔϧ OBWJHBUJPO͕Ͳ͏͍͏ͷ͔Θ͔Γɺ Կ͕خ͍͠ͷ͔ͷΠϝʔδΛ࣋ͬͯΒ͏͜ͱ
© DMM.com OBWJHBUJPOͱ
© DMM.com OBWJHBUJPOͱ OBWYNMΛॻ͍ͯɺ ͦΕ௨Γʹʢ։ൃऀ͕ʣભҠͤ͞Δ͜ͱͰɺ ը໘ભҠΛ༰қʹ͢ΔϥΠϒϥϦ
© DMM.com /BWJHBUJPO&EJUPSͰOBWYNMΛॻ͍ͯ
© DMM.com YNMʹભҠάϥϑΛॻ͍ͦΕ௨Γʹʢ։ൃऀ͕ʣભҠͤ͞Δ view.findNavController().navigate(R.id.toDestAction, bundle) దͳॴͰɺ దͳ*%ͱɺదʹ࡞ͬͨ#VOEMFΛ OBWJHBUJPOϝιουʹࢦఆ͢Ε
͜Ε͚ͩͰɺը໘ભҠ͕Ͱ͖Δʂ
© DMM.com ͳʹ͕خ͍͠ͷ͔ʁ
© DMM.com /PNPSFGSBHNFOUUSBOTBDUJPO ղͳ 'SBHNFOU5SBOTBDUJPOΛ Ұߟ͑ͳͯ͘ྑ͘ͳΔ SFQMBDF BEE
TIPX DPNNJU DPNNJU/PX
© DMM.com ભҠάϥϑʹΑͬͯը໘ભҠ͕Ұྎવ ը໘ભҠ͕Ұྎવʂ
© DMM.com ʜ ը໘ભҠ͕Ұྎવʂ
© DMM.com ʜ ը໘ભҠ͕Ұྎવʂ ʜJ04ͷ4UPSZCPBSEͰ
© DMM.com ʜ ը໘ભҠ͕Ұྎવʂ ը໘4UPSZCPBSEͱ͔ ͦͦΘͳ͍ͱ͔ Έ͍ͨͳ͕ग़͖ͯͯΔ͚Ͳ "OESPJEಉ͡ײ͡ʹͳΔͷʁ
© DMM.com 4UPSZCPBSEͱͷҧ͍ 4UPSZCPBSE "OESPJEͰ͍͏MBZPVUYNM ը໘ભҠ OBWJHBUJPOը໘ભҠͷΈ
© DMM.com ભҠઌ͕"DUJWJUZͰ'SBHNFOUͰಉ͡ॻ͖ํʂ view.findNavController().navigate(R.id.toDestAction, bundle) ભҠݩ "DUJPO ʁʁʁ
ભҠݩ"DUJPO*EΛࢦఆ͢Δ͚ͩͰɺ ର͕"DUJWJUZͩΖ͏ͱ'SBHNFOUͩΖ͏ͱ ಉ͡ίʔυͰॻ͘͜ͱ͕Ͱ͖Δ
© DMM.com OBWYNMʹ͍ͭͯ
© DMM.com OBWYNM ભҠ͕Ұྎવ
© DMM.com OBWYNM ͨͩɺ͜ͷάϥϑભҠͷ ༷ͷΑ͏ͳͷͱࢥͬͨํ͕ ͍͍͔
© DMM.com ҙ OBWYNMΛॻ͍ͯɺ ͦΕ௨Γʹʢ։ൃऀ͕ʣભҠͤ͞Δ͜ͱͰɺ ը໘ભҠΛ༰қʹ͢ΔϥΠϒϥϦ
© DMM.com ҙ OBWYNMΛॻ͍ͯɺ ͦΕ௨Γʹʢ։ൃऀ͕ʣભҠͤ͞Δ͜ͱͰɺ ը໘ભҠΛ༰қʹ͢ΔϥΠϒϥϦ զʑ։ൃऀ͕୲อ͠ͳ͚ΕͳΒͳ͍
© DMM.com ҙ OBWYNMΛॻ͍ͯɺ ͦΕ௨Γʹʢ։ൃऀ͕ʣભҠͤ͞Δ͜ͱͰɺ ը໘ભҠΛ༰қʹ͢ΔϥΠϒϥϦ view.findNavController().navigate(R.id.toDestAction, bundle)
ͦΕ௨ΓͰͳ͍߹ɺ
© DMM.com ҙ OBWYNMΛॻ͍ͯɺ ͦΕ௨Γʹʢ։ൃऀ͕ʣભҠͤ͞Δ͜ͱͰɺ ը໘ભҠΛ༰қʹ͢ΔϥΠϒϥϦ view.findNavController().navigate(R.id.toDestAction, bundle)
ͦΕ௨ΓͰͳ͍߹ɺ *MMFHBM"SHVNFOU&YDFQUJPO
© DMM.com TBGFBSHTʹ͍ͭͯ
© DMM.com OBWJHBUFϝιουʹJEΛࢦఆ͢Δ view.findNavController().navigate(R.id.toDestAction, bundle) ؒҧͬͨJEΛࢦఆ͠ͳ͍ͨΊʹ ໋໊نଇΛ͢Δ͜ͱͰ ͍͘Β͔ܰݮͰ͖Δ
© DMM.com OBWJHBUFϝιουʹJEΛࢦఆ͢Δ view.findNavController().navigate(R.id.toDestAction, bundle) ؒҧͬͨJEΛࢦఆ͠ͳ͍ͨΊʹ ໋໊نଇΛ͢Δ͜ͱͰ ͍͘Β͔ܰݮͰ͖Δ
TBGFBSHTΛ͑ͬͱܰݮͰ͖Δʂ
© DMM.com TBGFBSHTΛͬͨ߹ view.findNavController().navigate( HogeFragmentDirections.toDestAction() ) )PHF'SBHNFOULU
© DMM.com TBGFBSHTΛͬͨ߹ view.findNavController().navigate( HogeFragmentDirections.toDestAction() ) )PHF'SBHNFOULU ͦͷը໘͔Βੜ͑ͯΔભҠ͕ϝιουʹͳΔɻ
Ұݸ͔͠ભҠ͕ͳ͍߹ɺ Ұݸ͔͠ϝιου͕ੜ͑ͳ͍ͷͰ ؒҧ͑Α͏͕ͳ͍ɻ
© DMM.com TBGFBSHTΛͬͨ߹ view.findNavController().navigate( HogeFragmentDirections.toDestAction() ) )PHF'SBHNFOULU ੜ͞ΕΔͷ͕ɺ
ੜ͞ΕΔ'SBHNFOU໊ %JSFDUJPOT ͱ͍͏໊લʹͳ͍ͬͯΔɻ ؒҧ͑ͮΒ͍ɺϨϏϡʔͰ͙͢ؾ͚ͮΔɻ
© DMM.com TBGFBSHT͍͖ͬͯ·͠ΐ͏ TBGFBSHT͍͖ͬͯ·͠ΐ͏
© DMM.com ·ͱΊ
© DMM.com ·ͱΊ w OBWJHBUJPOͱը໘ભҠͷͨΊͷϥΠϒϥϦ w /P.PSF'SBHNFOU5SBOTBDUJPO w
OBWYNMը໘ભҠͷ༷ w TBGFBSHTΛ͏͜ͱͰɺϛεΛݮΒͤΔ