edge-to-edge
Installation
SKILL.md
Prerequisites
- Project MUST use Android Jetpack Compose.
- Project MUST target SDK 35 or later. If the SDK is lower than 35, increase the SDK to 35.
Step 1: plan
- Locate and analyze all Activity classes to detect which have existing edge-to-edge support. For every Activity without edge-to-edge, plan to make each Activity edge-to-edge.
- In each Activity, Locate and analyze all lists and FAB components to detect which have existing edge-to-edge support. For every component without edge-to-edge support, plan to make each of these components edge-to-edge.
- In each Activity, scan for
TextField,OutlinedTextField, orBasicTextField. If found, then you MUST verify the IME doesn't hide the input field by following the IME section of this skill.
Step 2: add edge-to-edge support
- Add
enableEdgeToEdgebeforesetContentinonCreatein each Activity that does not already callenableEdgeToEdge. - Add
android:windowSoftInputMode="adjustResize"in the AndroidManifest.xml for all Activities that use a soft keyboard.
Step 3: apply insets
Related skills
More from android/skills
r8-analyzer
Analyzes Android build files and R8 keep rules to identify redundancies,
335navigation-3
Learn how to install and migrate to Jetpack Navigation 3, and how to
329migrate-xml-views-to-jetpack-compose
Provides a structured workflow for migrating an Android XML View to Jetpack
298play-billing-library-version-upgrade
Use this skill when upgrading or migrating an Android project from any
237display-ai-glasses-with-jetpack-compose-glimmer
Provides guidelines for developing projected applications for Android
87android-cli
Orchestrates Android development tasks including project creation, deployment, SDK management, and environment diagnostics using the `android` command-line tool.
60