Skip to content

Android rendering content behind status bar #1

@leonardb

Description

@leonardb

Device: Pixel 8 Pro

Starting with Android 15 apps are rendered edge-to-edge by default.

This means status bar will overlay the app screen unless insets are explicitly handled.

Recommended fix: safeDrawingPadding

Set up window insets

override fun onCreate(savedInstanceState: Bundle?) {
    super.onCreate(savedInstanceState)

    enableEdgeToEdge()

    setContent {
        Box(Modifier.safeDrawingPadding()) {
            // the rest of the app
        }
    }
}
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions