# /edge-to-edge: Make a Compose app edge-to-edge without hidden buttons

Source: https://trendhub.net/skills/android-skills/edge-to-edge
Skill folder: https://github.com/android/skills/tree/main/system/edge-to-edge
Pack: Android Skills (https://trendhub.net/skills/android-skills)
Works with: Android CLI (detected agents), Claude Code, Codex

edge-to-edge walks the agent through every Activity in a Jetpack Compose app, turns on edge-to-edge drawing and applies window insets so lists, FABs and text fields stay clear of the status bar, navigation bar and keyboard. It spells out right and wrong inset patterns, especially for the soft keyboard, and ends with a checklist and a full build.

## When to use it

- Targeting SDK 35 left buttons or list items underneath the system bars.
- Text fields are covered by the keyboard or get double padding when it opens.
- Status bar or navigation bar icons are unreadable against your content.

## How it works

1. **Plan per Activity**: The agent finds every Activity, list, FAB and text field and notes which ones lack edge-to-edge handling.
2. **Enable edge-to-edge**: It calls enableEdgeToEdge before setContent and sets adjustResize in the manifest for any Activity that shows a keyboard.
3. **Apply insets once**: It prefers Scaffold padding values and Material 3 components, uses safe drawing padding or rulers elsewhere, and picks one method to avoid double padding.
4. **Handle keyboard and bars**: IME handling favours fitting content inside the IME ruler, and system bar icon colours and navigation bar contrast are set to match the theme.
5. **Verify**: A checklist confirms each Activity, text field, list and FAB is covered, then the project is built with Gradle.

## What it steers the agent away from

- Applying keyboard insets twice so content jumps when the IME opens.
- Padding a list's parent instead of its contentPadding, which clips scrolling content.
- Putting safe drawing padding on an adaptive navigation scaffold, which breaks the edge-to-edge look.

## What it can touch

It edits Activity classes, theme files, Compose layouts and AndroidManifest.xml, may raise the target SDK to 35, and runs a Gradle build.

## Pairs well with

- `/adaptive`
- `/jetpack-compose-performance`

## Questions

### Does it work for View-based apps?

No. The skill requires a Jetpack Compose project targeting SDK 35 or later.

### Does it handle full-screen dialogs?

Yes. Dialogs that fill the screen and disable the platform default width are switched so they also draw behind the system bars.
