Modern Android Screen Adaptation: Three Layers, Not One Scale Factor
Android 16 will break apps that still hard-code portrait or disallow resizing on large screens, and edge-to-edge on Android 15 changes how content is inset. Adopting the three-layer approach and the official adaptive APIs is now the only way to avoid broken layouts across phones, foldables, tablets, and desktop windows.
Device classes now range from 320dp small-fold outer screens to 1280dp+ tablets and arbitrary desktop windows. A single dp scale factor cannot cover this spread, and the old "design once, layout-land for landscape" workflow breaks down. Modern adaptation is a three-layer system: resource qualifiers handle density, language, and theme substitution; layouts become elastic with constraints, weights, and adaptive grids; WindowSizeClass decides the structural form, such as single, two, or three panes and the navigation shape.
The official breakpoints are 600dp and 840dp: Compact under 600dp, Medium 600 to 839dp, Expanded at or above 840dp. Compose's `currentWindowAdaptiveInfo()` gives these values reactively, and `BoxWithConstraints`, `GridCells.Adaptive(160.dp)`, `ListDetailPaneScaffold`, and `NavigationSuiteScaffold` handle local responsiveness, column count, list-detail navigation, and bottom-bar-versus-rail switching without hand-written breakpoints.
Foldable support adds another dimension: `FoldingFeature` exposes hinge state, orientation, separation, and occlusion, and code must convert hinge bounds from screen to window coordinates before placing panes. State continuity on fold/unfold relies on ViewModel plus SavedStateHandle and rememberSaveable, not on suppressing recreation. Android 15 forces edge-to-edge for targetSdk 35 apps, and Android 16 ignores orientation locks and resize restrictions on large screens for targetSdk 36 apps, so apps must accept any window shape.
The density hack works because screen width is fixed on a normal phone; as soon as windows become resizable, any solution that bases density on widthPixels is measuring the wrong thing.
The guide's content-driven stance on breakpoints is a useful antidote to over-engineering; Material's numbers are starting points, and content constraints like readable line length should override them.
Width beats orientation for foldables; an unfolded device can remain portrait while exceeding 600dp, so orientation checks miss the layout change.
Android 16's rule changes are a forced-migration event; apps that relied on portrait locks and non-resizable activities will have to adapt whether they planned it or not.
The three-layer model separates concerns cleanly: resource substitution for pixels, layout elasticity for space, and window class for structure. Trying to solve all three with one mechanism is what made the old approach fail.