~/talk

Deep Dive Into Size Configuration Changes

Talkat droidcon San Francisco 2023 · 2023-06-08..06-09· [android, web-platform]
github:alexvanyo
slides:none on file

Explains that size configuration values represent an activity window, not the physical screen, and that insets and DPI rounding produce concrete bugs (Pixel 7 Pro rounding can leave a one‑pixel gap). Recommends using WindowMetricsCalculator / AndroidX Window to get exact window metrics, relying on localConfiguration.current in Compose because it updates via view callbacks, and installing a small utility view that overrides view.onConfigurationChanged for reliable notifications across API 30–33; notes API24, 30–33, and 34 behavioral differences.

AI-written summary · about

  1. 0:00Introduction to size configs
  2. 2:18What size configs represent
  3. 8:28Inset and rounding issues
  4. 15:12Accurate window size solutions
  5. 17:18Activity recreation behavior
  6. 19:26Significant vs insignificant changes
  7. 21:33Handling config changes
  8. 24:00Compose and API 34 updates
  9. 25:24Key recommendations
~/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.