Once you target SDK 35 or higher on a device running Android 15 or higher, your app is displayed edge-to-edge. The window spans the entire width and height of the display by drawing behind the system bars. System bars include the status bar, caption bar, and navigation bar.
This document explains how to implement an edge-to-edge display in Android applications using traditional views, covering enablement, handling overlaps with system bars through insets, and other display considerations.
developer.android.com