Open
Description
Description: The strange rectangle appears when the window overlaps with the display cutout in edge-to-edge mode.
Test11
(#3983 or #4576) Catalog app
Expected behavior: The strange rectangle doesn't appear when the window overlaps with the display cutout in edge-to-edge mode.
Test11
(#3983 or #4576) Catalog app
Source code:
<androidx.drawerlayout.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/drawerLayout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.coordinatorlayout.widget.CoordinatorLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fitsSystemWindows="true">
<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/appBar"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</com.google.android.material.appbar.AppBarLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
<com.google.android.material.navigation.NavigationView
android:layout_width="220dp"
android:layout_height="match_parent"
android:layout_gravity="start"
app:menu="@menu/main" />
</androidx.drawerlayout.widget.DrawerLayout>
<resources>
<style name="Theme.App" parent="Theme.Material3.DynamicColors.DayNight.NoActionBar">
<item name="android:windowLayoutInDisplayCutoutMode">always</item>
</style>
</resources>
Minimal sample app repro: Test11.zip
Android API version: 35
Material Library version: 1.13.0-alpha10
Device: Emulator 35.3.11