~/talk

Understanding WindowInsets

Talkat Android Worldwide July 2021 · 2021-07-27..07-28· [android]
links:none on file
slides:none on file

Going full screen with setDecorFitsSystemWindows(false) pushes UI under the navigation bar so measure the navigation inset with getInsets(Type.navigationBars()) and apply bottom margin or padding; getInsets is API 29+ so use WindowInsetsCompat/WindowCompat for backward compatibility (works on ~API 21+). Use Insetter to replace verbose boilerplate with builder calls like marginBottom(type = navigationBars). Use WindowInsetsController to set status bar appearance and show/hide IME; Android 12 adds rounded corners and privacy indicator bounds to avoid clipped icons.

AI-written summary · about

  1. 0:00Introduction
  2. 1:10Understanding window insets
  3. 3:40Implementing full screen
  4. 7:31Managing insets programmatically
  5. 12:13Simplifying with Insetter
  6. 13:42Handling display cutouts
  7. 17:04Advanced window appearance
  8. 19:15Keyboard visibility control
  9. 21:37Android 12 features
  10. 25:55Q&A and closing
~/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.