An edge-to-edge layout on Android is a window configuration in which an app draws its content behind the system bars, the status bar at the top and the navigation bar at the bottom, instead of stopping at their edges. In Mobile UX, edge-to-edge design makes the full display feel like one continuous canvas, while the app uses window insets to keep text, buttons and gestures clear of the areas the system still owns.
The pattern became the platform norm when Android 10 introduced gesture navigation, and it became mandatory for apps targeting Android 15 (API level 35), where the system enforces edge-to-edge drawing by default. Getting it right is now a baseline expectation rather than a stylistic choice.
How edge-to-edge drawing works on Android
Edge-to-edge drawing works by making the system bars transparent or translucent and extending the app window so that its root view starts at pixel zero of the screen. The system then reports the size of every overlapping region through `WindowInsets`, and the app applies those values as padding or margins to the views that must not be covered.
In practice, developers call `enableEdgeToEdge()` from AndroidX Activity, or WindowCompat.setDecorFitsSystemWindows(window, false) on older code paths, and then attach an insets listener with ViewCompat.setOnApplyWindowInsetsListener. Jetpack Compose offers modifiers such as windowInsetsPadding and safeDrawingPadding, and Material 3 components such as Scaffold and TopAppBar consume insets automatically.
The following table lists the main inset types an edge-to-edge app must handle and what each one protects.
| Inset type | What it describes | Typical handling |
|---|---|---|
| System bars | Status bar and navigation bar areas | Pad toolbars and bottom content |
| Display cutout | Camera notch or punch-hole region | Keep text and controls outside it |
| System gestures | Edges reserved for back and home swipes | Avoid custom swipe targets there |
| Mandatory system gestures | Bottom area the system never yields | Never place draggable handles there |
| IME | On-screen keyboard height | Lift input fields above the keyboard |
| Tappable element | Bars that accept taps, such as three-button navigation | Pad buttons that sit near the bottom |
Navigation modes and bar appearance
The navigation mode chosen by the user changes how much space the bottom inset occupies, so an edge-to-edge layout must adapt rather than assume a fixed height. With gesture navigation, the bottom bar shrinks to a thin gesture handle of roughly 16 to 24 dp, while three-button navigation reserves around 48 dp of tappable space.
Bar appearance is controlled separately from drawing. Apps choose light or dark system bar icons through WindowInsetsControllerCompat so that the status icons remain legible against the content beneath them. On Android 15, the system ignores calls that set opaque status bar colors, and it applies a translucent scrim behind three-button navigation by default to preserve icon contrast.
This comparison shows how the main navigation modes affect an edge-to-edge screen.
| Navigation mode | Approximate bottom inset | Design consequence |
|---|---|---|
| Gesture navigation | 16 to 24 dp | Content can show through behind the handle |
| Three-button navigation | About 48 dp | Translucent scrim keeps buttons visible |
| Two-button navigation | About 48 dp | Treated like three-button for padding |
| Immersive mode | Zero while bars are hidden | Bars reappear on swipe, overlaying content |
Edge-to-edge compared with related layout concepts
Edge-to-edge is a window-level drawing decision, whereas several neighboring concepts describe how content is positioned inside that window. Confusing them leads to layouts that either waste space or place controls under system UI.
| Concept | Main question it answers | Relation to edge-to-edge |
|---|---|---|
| Edge-to-edge layout | Does the app draw behind system bars | The window configuration itself |
| Safe area | Where is content guaranteed unobscured | Derived from insets inside the edge-to-edge window |
| Immersive mode | Are the system bars hidden | Hides bars temporarily; edge-to-edge keeps them visible |
| Adaptive layout | How does the UI change by window size | Independent; both apply on foldables and tablets |
| Fit system windows | Should the system pad content automatically | The legacy opposite of edge-to-edge drawing |
The safe area term comes mainly from Apple platforms, but Android achieves the same result through `WindowInsets.safeDrawing` in Compose, which combines system bars, cutouts and the keyboard into one value.
Designing and implementing edge-to-edge screens
A well-built edge-to-edge screen lets backgrounds, images and scrolling lists extend under the bars while keeping interactive elements inside the insets. The governing rule is simple: decorative surfaces may bleed to the edge, but anything the user must read or tap must respect the inset values.
- Apply top insets to the app bar, not to the whole screen, so the bar color fills the status bar area.
- Give scrolling lists bottom content padding equal to the navigation inset, with
clipToPaddingdisabled, so the last item scrolls fully into view. - Lift a floating action button and bottom sheets by the navigation inset plus their normal margin.
- Handle the IME inset on forms so the focused field stays visible above the keyboard.
- Test landscape orientation, where cutouts and the navigation bar may sit on the side.
The decision table below summarizes how common elements should treat insets.
| Screen element | Draw behind bars | Inset to apply |
|---|---|---|
| Full-bleed hero image | Yes | None, unless text overlays it |
| Top app bar | Background only | Top system bar inset as padding |
| Scrolling list | Yes | Bottom inset as content padding |
| Bottom navigation bar | Background only | Bottom inset inside the component |
| Text input field | No | IME inset and system bar inset |
| Video player in full screen | Yes | Display cutout only, bars hidden |
Common mistakes and failure modes
Most edge-to-edge defects appear when inset handling is incomplete, which often surfaces only after an app raises its target SDK to Android 15. The forced behavior exposes screens that previously relied on the system to pad content automatically.
- Buttons hidden under the navigation bar, caused by applying insets to the root but not to nested bottom layouts.
- Double padding, where both a Material component and a manual listener consume the same inset.
- Unreadable status icons when light icons sit over a light background image.
- Gesture conflicts when carousels or drawers rely on swipes from the screen edge without gesture exclusion rectangles.
- Assuming fixed heights such as 24 dp for the status bar, which breaks on devices with tall cutouts.
The most reliable safeguard is to test every screen with gesture navigation, three-button navigation, a display cutout emulator setting and the keyboard open, because each combination produces different inset values.
A non-technical view
Phones used to keep apps inside a frame. A black strip held the clock at the top. Another strip held the buttons at the bottom. Edge-to-edge layout removes that frame. The app picture fills the whole glass. The clock and navigation sit on top of it like stickers on a poster.
Nothing important may hide under those stickers. So the app asks the phone how big each strip is. It then moves its buttons and text just out of the way. Photos and colors still spread all the way to the edges.
A concrete example
A small team maintaining a recipe app raised its target SDK to API level 35 and found that the system now drew every screen edge-to-edge. On a test phone with three-button navigation, the Save recipe button sat partly under the navigation bar, and the last ingredient in long lists could not be scrolled into view.
The developers called enableEdgeToEdge() explicitly, moved inset handling into the Compose Scaffold, added the navigation inset as bottom content padding on the ingredient list and lifted the save button by the same value. They also applied imePadding to the comment form.
After testing on gesture and button navigation, a punch-hole device and a tablet in landscape, the app showed full-bleed food photography behind a translucent status bar with every control reachable. Reviews mentioning hidden buttons stopped, and the update passed the team’s accessibility check without further changes.