Becoming a master window fitter�
summary
Explains why WindowInsets exist, how Android behavior changes across versions, and exactly which APIs to use: call setSystemUiVisibility layout flags to lay out behind bars, avoid hardcoding status bar sizes or reading internal resources, and use WindowInsets.getSystemWindowInsetTop/Bottom/Left/Right delivered via setOnApplyWindowInsetsListener or ViewCompat to read real inset values; prefer fitsSystemWindows on DrawerLayout/CoordinatorLayout/AppBarLayout/CollapsingToolbarLayout for provided widgets and avoid the translucent-system-bars shortcut because it hides important behaviors.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 1:50What is a window
- 3:35Why fit windows
- 6:19History of window fitting
- 9:10WTFs explained
- 13:46Handling system windows
- 18:01What not to do
- 21:41Window insets API
- 26:17Five key rules
related talks
33mUnderstanding WindowInsets
07mInsets: Compose edition
07mInsets: Compose edition
28mBuilding Robust Screens That Handle Window Size Changes
21mPractical edge-to-edge: A Complete Walkthrough
38mCutting-Edge-to-Edge in Android 15
37mGoing edge-to-edge with Gesture Navigation
12mDesigning a high quality app with the latest Android features
