Android 16 enforces edge-to-edge display for apps targeting SDK 35, making it an architectural concern rather than a simple UI fix. The post covers the 'double-padding' problem that emerges in hybrid Compose/legacy XML apps, and proposes a centralized inset consumption pattern using a custom ProductionGradeScaffold with CompositionLocal to track consumed padding. Key gotchas include fitsSystemWindows becoming unreliable, missing foldable/landscape inset handling, and transparent nav bars that still consume touch events. The author argues inset logic belongs in platform infrastructure, not ViewModels or individual feature composables.

5m read timeFrom proandroiddev.com
Post cover image

Sort: