Menu

1 / 7

Edge-to-Edge and 3-Button Navigation: Fixing Clipped Compose UI

DEV Community: kotlin·Nesim Razon·13 days ago
#uekd01zo
#devtokotlin#devto#dev#screen#bottom
Long article (1430 words) — no AI summary yet.
Reading 0:00
15s threshold

After your app targets SDK 35, the system draws it behind the status bar and the navigation bar. On a gesture phone it often looks fine. On a phone with three buttons the last row can sit under the bar, or a bottom line can vanish. Here are three real bugs from my own apps, the fix for each, and the test routine I now use.

What edge-to-edge changed

Android's documentation says edge-to-edge is enforced once your app targets SDK 35 and runs on Android 15 or higher. The window then spans the whole display and draws behind the system bars. On earlier Android versions you get the same look by calling enableEdgeToEdge() in the activity. My apps target SDK 36, so on a current phone this is not optional.

The system does not move your content.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.