~/talk

Deep dive into size configuration changes

Talkat DroidKaigi 2023 · 2023-09-14..09-16· [android]
name:Chiko
links:none on file
slides:none on file

Large-screen and multi-window use makes window size change frequently and unpredictably; an example run shows activity restarts 4 vs config changes 100+, so relying on Activity restarts is unsafe. Use Jetpack WindowManager to get the usable Window size and hide inset complexity, and use view callbacks (or Compose’s LocalConfiguration / Window Size Classes) to observe changes. The demo counting tool proves view-level callbacks fire across API levels and the WindowManager approach reliably measures sizes and works.

AI-written summary · about

  1. 0:00Introduction
  2. 1:03What is size configuration change
  3. 2:31Large screen size change issues
  4. 7:27Window vs screen size
  5. 10:18Restart activity on config change
  6. 13:12Screen size and insets relation
  7. 21:05Accurate window size detection
  8. 24:10Handling config change notifications
  9. 27:43ビューのonConfigurationChanged活用
  10. 30:57View and activity implementation
  11. 32:24Compose size change detection
  12. 33:48WindowSizeClass library
  13. 36:41Summary and key points
~/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.