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
23
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.2k
KotlinでReact Native(expo) を使いたい
kgmyshin
2
1.1k
新規チームで新規開発を始める時にやること
kgmyshin
40
8.6k
android-multi-module-with-dagger
kgmyshin
10
6k
kotlin linter
kgmyshin
12
15k
Other Decks in Programming
See All in Programming
CSC509 Lecture 14
javiergs
PRO
0
130
talk-with-local-llm-with-web-streams-api
kbaba1001
0
170
.NET 9アプリをCGIとして レンタルサーバーで動かす
mayuki
1
770
クリエイティブコーディングとRuby学習 / Creative Coding and Learning Ruby
chobishiba
0
3.9k
Criando Commits Incríveis no Git
marcelgsantos
2
170
[JAWS-UG横浜 #76] イケてるアップデートを宇宙いち早く紹介するよ!
maroon1st
0
450
ブラウザ単体でmp4書き出すまで - muddy-web - 2024-12
yue4u
2
460
Symfony Mapper Component
soyuka
2
730
ゆるやかにgolangci-lintのルールを強くする / Kyoto.go #56
utgwkk
1
350
SymfonyCon Vienna 2025: Twig, still relevant in 2025?
fabpot
3
1.2k
The rollercoaster of releasing an Android, iOS, and macOS app with Kotlin Multiplatform | droidcon Italy
prof18
0
150
17年周年のWebアプリケーションにTanStack Queryを導入する / Implementing TanStack Query in a 17th Anniversary Web Application
saitolume
0
250
Featured
See All Featured
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
127
18k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
45
2.2k
How to Ace a Technical Interview
jacobian
276
23k
Making the Leap to Tech Lead
cromwellryan
133
9k
[RailsConf 2023] Rails as a piece of cake
palkan
53
5k
Code Review Best Practice
trishagee
65
17k
RailsConf 2023
tenderlove
29
940
VelocityConf: Rendering Performance Case Studies
addyosmani
326
24k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
169
50k
Gamification - CAS2011
davidbonilla
80
5.1k
Done Done
chrislema
181
16k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
247
1.3M
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Λ͏͜ͱͰɺϛεΛݮΒͤΔ