https://developer.android.com/agents/skills/system/edge-to-edge/skill

Apply Android Jetpack Compose edge-to-edge insets and IME handling.

5|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/fornewid/android-developers-changelog --skill https-developer-android-com-agents-skills-system-edge-to-edge-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: https://developer.android.com/agents/skills/system/edge-to-edge/skill
Source: https://github.com/fornewid/android-developers-changelog/tree/main/docs/agents/skills/system/edge-to-edge
Command: npx skills add https://github.com/fornewid/android-developers-changelog --skill https-developer-android-com-agents-skills-system-edge-to-edge-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents Android UI from being obstructed by system bars by guiding you to implement edge-to-edge, correct inset handling, and IME-safe layouts in Jetpack Compose apps.

Core Features & Use Cases

  • Add edge-to-edge correctly across Activities: Ensure each Activity enables edge-to-edge and uses the right soft input behavior for keyboard interaction.
  • Apply system insets without breaking scrolling or layout: Use the preferred Scaffold padding patterns or safeDrawing/IME rulers so tappable UI stays accessible.
  • Fix IME behavior for text inputs: Verify TextField/OutlinedTextField/BasicTextField layouts avoid being hidden when the keyboard opens.

Quick Start

Update your project by enabling edge-to-edge in every Compose Activity, setting adjustResize for keyboard screens, and applying safe insets or IME fitInside/imePadding to each relevant container following the checklist in the skill instructions.

Frequently Asked Questions about https://developer.android.com/agents/skills/system/edge-to-edge/skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enable edge-to-edge in Jetpack Compose without hiding content behind system bars?

To enable edge-to-edge safely, call enableEdgeToEdge before setContent and apply system bar insets using Scaffold padding or safeDrawing insets rulers. This ensures your Compose UI renders behind system bars while keeping tappable content accessible.

Why does my TextField get hidden when the soft keyboard opens in my Android Compose app?

Your TextField is likely hidden because the Activity lacks the correct soft input behavior. Set adjustResize in the manifest for keyboard screens and apply IME insets using imePadding or fitInside to keep text inputs visible when the keyboard opens.

What is the best way to apply window insets across multiple Compose Activities during app modernization?

The best way to apply window insets across multiple Activities is using Scaffold padding patterns to avoid double padding. This approach safely handles system bars, scrollable layouts, lists, FABs, and dialogs consistently across your app.

How do I prevent double padding when using Scaffold and insets rulers in Jetpack Compose?

Prevent double padding by using the preferred Scaffold padding patterns instead of manually applying insets. Scaffold consumes system bar insets and provides padding values to your content, avoiding overlapping inset applications.

Does Jetpack Compose edge-to-edge require specific manifest settings for IME behavior?

Yes, enabling edge-to-edge requires setting adjustResize in the Android manifest for screens with text inputs. This soft input mode resizes the window when the keyboard appears, allowing your IME insets and imePadding modifiers to function correctly.

Can I use WindowCompat insets with Jetpack Compose for edge-to-edge layouts?

While WindowCompat handles insets in traditional Android Views, Jetpack Compose provides native inset support through Scaffold padding and insets rulers. Use safeDrawing and IME insets directly in Compose to ensure proper edge-to-edge rendering without hidden content.