Skip to content

Practice: Build Superheroes app: Android Basics with Compose #26

@cygnus-sawyer

Description

@cygnus-sawyer

The setUpEdgeToEdge function isn't working for me. The top edge of the screen is still not matching the background color. Android Studio is telling me that window.statusBarColor and window.navigationBarColor are deprecated (it puts a strikethrough through them), but it's not clear to me what to replace them with.

If I hover over the strikethroughed lines with my mouse, the popup for statusBarColor says,
"Draw proper background behind WindowInsets. Type. statusBars()} instead."

And the popup for navigationBarColor says "Draw proper background behind WindowInsets. Type. navigationBars() or WindowInsets. Type. tappableElement() instead."

But I don't know how to do that. I think the tutorial should be updated to explain how to do this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions