~/talk

Deep Dive into New Jetpack Compose APIs: FlexBox, Grid, Styles, Adaptive UI with mediaQuery

TalkinJapaneseat DroidKaigi 2026 · 2026-09-01..09-03· [android, css]
name:Chiko
links:none on file
slides:none on file

Jetpack Compose introduces four new APIs — mediaQuery, FlexBox, Grid, and Styles — to build adaptive UIs by detecting media state (window size, posture, input devices), defining reusable grid configurations/areas, and bundling dynamic style tokens. The Adaptive JetStream sample was rewritten using these APIs, halving layout-decision code and simplifying tests; note that FlexBox and Grid lack lazy-loading, so use LazyRow or LazyVerticalGrid for large lists, and Grid can swap layout configs via lambdas without changing content.

AI-written summary · about

  1. 0:00Introduction
  2. 1:14New Jetpack Compose API background
  3. 4:27What is media state
  4. 8:17Adaptive UI UX consistency
  5. 12:35New API goals overview
  6. 14:45Media query API
  7. 20:47FlexBox and Grid API
  8. 27:50Styles API dynamic styling
  9. 33:26Implementation effects and component choice
  10. 35:54Migration strategy
  11. 37:19Resources and future outlook
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.