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
920
JetpackCompose Slot APIs
mitohato14
June 27, 2021
Tweet
Share
More Decks by mitohato14
See All by mitohato14
兎に角、コードレビュー
mitohato14
1
250
CodeRabbitと過ごした1ヶ月 ─ AIコードレビュー導入で実感したチーム開発の進化
mitohato14
4
2k
アプリの復旧を早くしたい!
mitohato14
1
110
事業開発とコミュニティ活動
mitohato14
0
51
プレビューファーストUI開発
mitohato14
1
470
新米テックリードの試行錯誤.pdf
mitohato14
1
510
Start Jetpack Compose.pdf
mitohato14
0
380
Featured
See All Featured
4 Signs Your Business is Dying
shpigford
185
22k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3.1k
Designing Experiences People Love
moore
142
24k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
9.7k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Stop Working from a Prison Cell
hatefulcrawdad
271
21k
Documentation Writing (for coders)
carmenintech
75
5.1k
How STYLIGHT went responsive
nonsquared
100
5.8k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Why Our Code Smells
bkeepers
PRO
340
57k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.5k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.1k
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