Mobile and desktop apps · Skill

Configure edge-to-edge content

configure-edge-to-edge

Keeps Compose content clear of the status bar, the gesture bar, and the keyboard by turning on edge-to-edge and applying system-bar padding only once. Use when a control sits under a system bar, or the keyboard covers a text entry.

Works with: Any AI Not yet model-tested; testing Jan 2027

Paste it into ChatGPT, Claude, Gemini or any AI chat, then tell it about your project. How it works

Install in Claude Code, Cursor or Codex (optional)

Only for AI coding tools that read skill folders. Run one line in a terminal, in your project folder. It downloads this skill's text files from TheSkillVault and nothing else; you can read them first with “View raw SKILL.md”.

Claude Code (all your projects)

curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/configure-edge-to-edge/raw' -o ~/'.claude/skills/configure-edge-to-edge/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/configure-edge-to-edge/files/LICENSE.txt' -o ~/'.claude/skills/configure-edge-to-edge/LICENSE.txt' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/configure-edge-to-edge/files/NOTICE.txt' -o ~/'.claude/skills/configure-edge-to-edge/NOTICE.txt'

Cursor (this project)

curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/configure-edge-to-edge/raw' -o '.cursor/skills/configure-edge-to-edge/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/configure-edge-to-edge/files/LICENSE.txt' -o '.cursor/skills/configure-edge-to-edge/LICENSE.txt' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/configure-edge-to-edge/files/NOTICE.txt' -o '.cursor/skills/configure-edge-to-edge/NOTICE.txt'

Codex and other Agent Skills tools (this project)

curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/configure-edge-to-edge/raw' -o '.agents/skills/configure-edge-to-edge/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/configure-edge-to-edge/files/LICENSE.txt' -o '.agents/skills/configure-edge-to-edge/LICENSE.txt' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/configure-edge-to-edge/files/NOTICE.txt' -o '.agents/skills/configure-edge-to-edge/NOTICE.txt'

Or connect the whole library over MCP

Add TheSkillVault to Cursor or add this to your app's MCP settings (read-only; help):

{
  "mcpServers": {
    "theskillvault": {
      "url": "https://theskillvault.ai/mcp"
    }
  }
}

Content that draws under the status bar or the gesture bar is easy to miss and hard to tap. Turn on edge-to-edge, then pad the content only once.

When to use

  • A button, a list, or a bar sits under the status bar or the gesture bar.
  • The keyboard covers a text entry.
  • Status-bar icons are hard to see against the content behind them.

When not to use

  • Skip this when the need is color, type, or row styling. That is a separate skill.
  • Skip this when the need is columns, panes, or a back stack. Those are separate skills.
  • Skip this when you are choosing a tab row. That choice is a separate skill.
  • The screen is a website. This is for Compose on Android.

Steps

  1. Target SDK 35 or later. Call enableEdgeToEdge before setContent in each activity that does not already call it.
  2. For a text entry, set adjustResize on that activity in the manifest. Do not use the deprecated soft-input constant. A padding error is applying the same inset twice.
  3. Prefer a scaffold and pass its inner padding into the content. Consume that padding so a child does not apply the same inset again.
  4. Material bars, rails, and sheets already pad themselves. Do not also pad their parent, or the bar background cannot draw into the system-bar area.
  5. For the keyboard, fit the content inside the IME inset ruler, or add IME padding. Do not do both when the scaffold padding already includes the keyboard.
  6. Check the last list row and any bottom action. Both must clear the gesture bar. Check a text entry with the keyboard open, and check that status-bar icons stay legible.

Gotchas

  • Do not include passwords, tokens, or private text in sample entries.
  • Padding the scaffold parent and the content both inset the same bars twice, which leaves a dead gap.
  • Safe-drawing padding on an adaptive scaffold parent clips the edge-to-edge draw. Pad the inner screens instead.
  • This is an independent how-to adapted from a Google LLC skill. It is not official Android documentation, and it was not run on a device for this library.

Portability

If you use Views, call the same edge-to-edge entry point and apply system-bar padding on the content root rather than on every child. If you use Compose, the scaffold path above is the path to follow. Either stack should pad only once.

Done when

  • Edge-to-edge is on, and the target SDK is 35 or later.
  • Scaffold padding is applied once and then consumed.
  • The keyboard does not cover the focused entry, and the last row clears the gesture bar.

Example prompt

"This Compose screen draws under the status bar and the gesture bar, and the keyboard covers the text entry. Turn on edge-to-edge and pad the scaffold content once."

---

Adapted from "edge-to-edge" by Google LLC in android/skills (Apache-2.0). The upstream licence leaves the copyright line unfilled. See LICENSE.txt and NOTICE.txt.

Bundled files

Licence

Adapted from Google LLC (android/skills, system/edge-to-edge) (Copyright line in upstream LICENSE.txt is the unfilled Apache template 'Copyright [yyyy] [name of copyright owner]'. Skill metadata.author at this commit is Google LLC. No NOTICE file in the repository.), Apache License 2.0. Modified by TheSkillVault on 2026-11-09: rewritten as a short edge-to-edge pass (enable the mode, scaffold padding consumed once, keyboard, list and bottom action); dropped the wrong/right code catalogue and the ruler samples. Not the original file and not official Android documentation.

Licence: Apache License 2.0. Attribution when you reuse it: Based on work by Google LLC (android/skills, system/edge-to-edge) (Copyright line in upstream LICENSE.txt is the unfilled Apache template 'Copyright [yyyy] [name of copyright owner]'. Skill metadata.author at this commit is Google LLC. No NOTICE file in the repository., Apache License 2.0), https://github.com/android/skills/tree/6daa53ef27fa2aa87827d183a85c06cedceca833/system/edge-to-edge; adapted by TheSkillVault, https://theskillvault.ai