Edge-to-edge layout · Android

Also known as: edge-to-edge

On this page 7

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 typeWhat it describesTypical handling
System barsStatus bar and navigation bar areasPad toolbars and bottom content
Display cutoutCamera notch or punch-hole regionKeep text and controls outside it
System gesturesEdges reserved for back and home swipesAvoid custom swipe targets there
Mandatory system gesturesBottom area the system never yieldsNever place draggable handles there
IMEOn-screen keyboard heightLift input fields above the keyboard
Tappable elementBars that accept taps, such as three-button navigationPad buttons that sit near the bottom
Window inset types relevant to edge-to-edge layouts

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 modeApproximate bottom insetDesign consequence
Gesture navigation16 to 24 dpContent can show through behind the handle
Three-button navigationAbout 48 dpTranslucent scrim keeps buttons visible
Two-button navigationAbout 48 dpTreated like three-button for padding
Immersive modeZero while bars are hiddenBars reappear on swipe, overlaying content
Effect of navigation modes on the bottom inset

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.

ConceptMain question it answersRelation to edge-to-edge
Edge-to-edge layoutDoes the app draw behind system barsThe window configuration itself
Safe areaWhere is content guaranteed unobscuredDerived from insets inside the edge-to-edge window
Immersive modeAre the system bars hiddenHides bars temporarily; edge-to-edge keeps them visible
Adaptive layoutHow does the UI change by window sizeIndependent; both apply on foldables and tablets
Fit system windowsShould the system pad content automaticallyThe legacy opposite of edge-to-edge drawing
How edge-to-edge differs from neighboring concepts

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 clipToPadding disabled, 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 elementDraw behind barsInset to apply
Full-bleed hero imageYesNone, unless text overlays it
Top app barBackground onlyTop system bar inset as padding
Scrolling listYesBottom inset as content padding
Bottom navigation barBackground onlyBottom inset inside the component
Text input fieldNoIME inset and system bar inset
Video player in full screenYesDisplay cutout only, bars hidden
Inset handling by screen element

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.