edge-to-edge

安装量: 348
排名: #9260

安装

npx skills add https://github.com/android/skills --skill edge-to-edge

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 , or BasicTextField . 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 enableEdgeToEdge before setContent in onCreate in each Activity that does not already call enableEdgeToEdge . Add android:windowSoftInputMode="adjustResize" in the AndroidManifest.xml for all Activities that use a soft keyboard. Step 3: apply insets The app MUST apply system insets, or align content to rulers, so critical Show more

返回排行榜