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
JetpackCompose Slot APIs
Search
mitohato14
June 27, 2021
0
870
JetpackCompose Slot APIs
mitohato14
June 27, 2021
Tweet
Share
More Decks by mitohato14
See All by mitohato14
兎に角、コードレビュー
mitohato14
0
57
CodeRabbitと過ごした1ヶ月 ─ AIコードレビュー導入で実感したチーム開発の進化
mitohato14
3
1.4k
アプリの復旧を早くしたい!
mitohato14
0
110
事業開発とコミュニティ活動
mitohato14
0
46
プレビューファーストUI開発
mitohato14
1
470
新米テックリードの試行錯誤.pdf
mitohato14
0
500
Start Jetpack Compose.pdf
mitohato14
0
370
Featured
See All Featured
Side Projects
sachag
455
43k
The Invisible Side of Design
smashingmag
301
51k
Become a Pro
speakerdeck
PRO
29
5.5k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
34
6k
How GitHub (no longer) Works
holman
314
140k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
Intergalactic Javascript Robots from Outer Space
tanoku
272
27k
Facilitating Awesome Meetings
lara
55
6.5k
It's Worth the Effort
3n
186
28k
Build your cross-platform service in a week with App Engine
jlugia
231
18k
The Language of Interfaces
destraynor
158
25k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
161
15k
Transcript
Slot APIs in Jetpack Compose mito
Slot APIs • Composableͷ্ʹΧελϚΠζͷϨΠϠΛద༻͢Δύλʔϯ • ݟͨΛΧελϚΠζ͘͢͠ͳΔ • ࡉ͔͍ΧελϚΠζ༻ͷҾΛՃ͠ͳͯ͘ྑ͘ͳΔ • ϚςϦΞϧίϯϙʔωϯτͷComposableͰଟ༻͞Ε͍ͯΔ
ʹComposableΛͯΊΔ͜ͱ͕Ͱ͖ΔΠϝʔδ
TopAppBar composable https://developer.android.com/jetpack/compose/layout#slot-based-layouts
TopAppBar composable https://developer.android.com/jetpack/compose/layout#slot-based-layouts Slot Slot Slot
TopAppBar composable
TopAppBar composable
TopAppBar composable navigationIcon title actions
Usage
Usage
Other… • Scaffold • BottomAppBar • Button/IconButton • more…
Sca ff old
None
None
Sca ff old
Sca ff old
Conclusion • ComposableͷݟͨΛΧελϚΠζ͘͢͠ͳΔ • ఏڙ͞ΕͯΔComposableͷଟ͘ͰSlot͕༻ҙ͞Ε͍ͯΔ • ࣗ࡞ͷڞ௨ComposableͰSlot༻ҙ͢Δͱ٢
Reference • https://developer.android.com/jetpack/compose/layout#slot- based-layouts • https://developer.android.com/codelabs/jetpack-compose- layouts#3