~/talk

Foldable, Meet Compose

Talkat droidcon San Francisco 2022 · 2022-06-02..06-03· [android]
name:Joy Liu
links:none on file
slides:none on file

Jetpack Compose integrates with foldable and large screens by shipping a hinge-aware UI component TwoPaneLayout, a window-info wrapper WindowState (built on Jetpack Window Manager) and a Compose test kit; the libraries are on Maven Central and GitHub. TwoPaneLayout lays out two panes around a physical hinge (66px on Surface Duo 2, 84px on Duo 1, 1px on a Galaxy Fold), supports pane weights and pin modes, auto-switches navigation rail vs bottom bar, and testing simulates folding features and span/unspan gestures.

AI-written summary · about

  1. 0:00Introduction and love story setup
  2. 2:11Foldable devices and design patterns
  3. 5:04Compose introduction and first date
  4. 6:31Two pane layout introduction
  5. 8:42Device postures and hinge awareness
  6. 13:24Navigation in two pane layout
  7. 14:52Window state library overview
  8. 17:16Window state in action
  9. 20:52Enhanced app with both libraries
  10. 21:54Navigation rail for large screens
  11. 24:00Testing on foldable devices
  12. 27:36Key takeaways and resources
~/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.