androidedge-to-edge

Android 35 and edge-to-edge: black navigation bar


I'm trying to set the compileSdkVersion to 35 and handling the new edge-to-edge requirement.

Project is a quite large project that started in 2012, so it's using Java/Views (no compose, no Kotlin).

Strangely, the navigation bar has a black background and the content is not edge-to-edge and stops before the navigation bar. Whether I set the phone to use a 3-button style, or the gesture navigation bar, it's the same. On the other hand, the status bar works fine, it is transparent and the content is drawn below the status bar.

I even call EdgeToEdge.enable(this);, which should not be needed if compileSdkVersion is set to 35, but that does nothing.

Any idea?


Solution

  • Found the solution. The use of the deprecated attribute "resizableActivity" was the culprit:

    <application
        ...
        android:resizeableActivity="false"
    

    EDIT: Not sure why the question has been downvoted, but I'm keeping this public as it seems like something that is totally undocumented by Google, and should probably be helpful to someone else in the same case.