~/talk

Build adaptive apps with Compose's new APIs

Talkat I/O Connect Berlin 2026 · on Thursday, 2026-06-25· [android]
name:Rob Orgiu
links:none on file
slides:none on file

Explains how Jetpack Compose’s new MediaQuery plus FlexBox and Grid APIs let adaptive UIs change layout and behavior based on real device capabilities: MediaQuery exposes window posture (flat, tabletop, book), window width/height, mic/camera booleans, pointer and keyboard precision, and viewing distance and recommends derivedMediaQuery for frequent width/height updates; FlexBox is non-lazy, supports grow/shrink (0..1), wrap and gaps and can make a button take remaining space; Grid is non-lazy, one‑indexed, supports fixed/percent/FR tracks, spanning and named areas. A sample two‑pane supporting‑pane UI and responsive grid are implemented and work live in the demo.

AI-written summary · about

  1. 0:00Introduction
  2. 0:30Media Query API
  3. 1:45Media Query capabilities
  4. 5:12Media Query example
  5. 9:27FlexBox API
  6. 10:37FlexBox layout and sizing
  7. 14:51FlexBox code example
  8. 17:17Adaptive UI with FlexBox
  9. 20:30List detail and supporting pane
  10. 21:31Grid API
  11. 24:00Grid configuration
  12. 31:24Grid layout example
  13. 34:32What you should know
~/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.