~/talk

Deep Dive Into Size Configuration Changes

Talkat droidcon New York 2023 · 2023-09-14..09-15· [android, web-performance]
github:alexvanyo
slides:none on file

Size configuration values represent the activity’s window, not the physical screen, and can differ because of dynamic insets and integer rounding (example: Pixel 7 Pro rounding leads to a one‑pixel gap). Use WindowMetricsCalculator (AndroidX.window) to get exact window size in pixels, and rely on view.onConfigurationChanged (or Compose’s LocalConfiguration.current) to recompute on every config change. Since Android 7 activity recreation happens only for significant resource changes, and APIs 30–33 have callback inconsistencies that API34 fixes.

AI-written summary · about

  1. 0:00Introduction
  2. 2:10Static size configurations
  3. 12:21Insets and rounding issues
  4. 19:02Dynamic size changes
  5. 28:57Recommendations and summary
~/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.