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
280
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
15分で分かった気になる dumpsys
kgmyshin
0
78
UIテストはもうMaestroでいいのかもしれない話
kgmyshin
27
13k
新規開発を始めるときにやるべきこと
kgmyshin
19
8.8k
android app error handling
kgmyshin
1
1.4k
solid+cqs+dry
kgmyshin
35
9.9k
Paging Library ~ アイテムの更新 ~
kgmyshin
2
3.3k
KotlinでReact Native(expo) を使いたい
kgmyshin
2
1.1k
新規チームで新規開発を始める時にやること
kgmyshin
40
8.8k
android-multi-module-with-dagger
kgmyshin
10
6.1k
Other Decks in Programming
See All in Programming
PHPで作るWebSocketサーバー ~リアクティブなアプリケーションを知るために~ / WebSocket Server in PHP - To know reactive applications
seike460
PRO
2
770
オニオンアーキテクチャを使って、 Unityと.NETでコードを共有する
soi013
0
370
快速入門可觀測性
blueswen
0
500
各クラウドサービスにおける.NETの対応と見解
ymd65536
0
250
Stackless и stackful? Корутины и асинхронность в Go
lamodatech
0
1.3k
20241217 競争力強化とビジネス価値創出への挑戦:モノタロウのシステムモダナイズ、開発組織の進化と今後の展望
monotaro
PRO
0
280
CQRS+ES の力を使って効果を感じる / Feel the effects of using the power of CQRS+ES
seike460
PRO
0
240
Lookerは可視化だけじゃない。UIコンポーネントもあるんだ!
ymd65536
1
130
Rubyでつくるパケットキャプチャツール
ydah
0
160
責務を分離するための例外設計 - PHPカンファレンス 2024
kajitack
9
2.3k
PSR-15 はあなたのための ものではない? - phpcon2024
myamagishi
0
400
ChatGPT とつくる PHP で OS 実装
memory1994
PRO
3
190
Featured
See All Featured
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
It's Worth the Effort
3n
183
28k
Why You Should Never Use an ORM
jnunemaker
PRO
54
9.1k
The Language of Interfaces
destraynor
155
24k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
173
51k
RailsConf 2023
tenderlove
29
970
Facilitating Awesome Meetings
lara
51
6.2k
Navigating Team Friction
lara
183
15k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
230
52k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
127
18k
Building Your Own Lightsaber
phodgson
104
6.2k
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Λ͏͜ͱͰɺϛεΛݮΒͤΔ