adaptive

Adapts Jetpack Compose UIs to phones, tablets, foldables, desktops, TVs, and XR devices.

2|Updated Jun 21, 2026
One-click install
npx skills add https://github.com/IsKenKenYa/skills --skill adaptive-iskenkenya
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: adaptive
Source: https://github.com/IsKenKenYa/skills/tree/main/skills/android/jetpack-compose/adaptive
Command: npx skills add https://github.com/IsKenKenYa/skills --skill adaptive-iskenkenya

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Android apps built for a single phone screen break or look wrong on tablets, foldables, desktops, TVs, and other form factors. This Skill provides a step-by-step workflow to make a Jetpack Compose app's UI adaptive across all Android device types. ## Core Features & Use Cases - Adaptive Navigation: Converts bottom navigation bars into NavigationSuiteScaffold layouts that switch between nav bars and nav rails, with scroll-aware visibility control. - Multi-Pane Layouts: Implements list-detail and supporting-pane layouts using Navigation 3 SceneStrategy APIs (ListDetailSceneStrategy, SupportingPaneSceneStrategy). - Adaptive Lists and Grids: Migrates LazyColumn to LazyVerticalGrid with adaptive column counts, and replaces fixed Column layouts with the experimental Grid and FlexBox APIs. - Use Case: You have a Compose app designed for phones and want it to show a two-pane list-detail layout on tablets and foldables while keeping single-pane navigation on phones. ## Quick Start Use the adaptive skill to make my Compose app's navigation and list-detail screens adapt to tablets and foldables.

Frequently Asked Questions about adaptive

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

FAQPage Schema
How do I make my Jetpack Compose app adaptive for tablets and foldables?

Follow a five-step workflow: verify UI with screenshot tests, replace the bottom navigation bar with NavigationSuiteScaffold, add multi-pane layouts using Navigation 3 SceneStrategy, convert vertical lists to adaptive grids, and hide app bars on scroll.

How to build a list-detail layout with Navigation 3 in Compose?

Add the androidx.compose.material3.adaptive:adaptive-navigation3 library, create a ListDetailSceneStrategy with rememberListDetailSceneStrategy, pass it to NavDisplay, and mark entries with listPane and detailPane metadata. Do not use ListDetailPaneScaffold.

Does the adaptive workflow work with Fragments or Views?

No. The app must use Jetpack Compose for all screens and Jetpack Navigation 3. If the app still uses Fragments or Views, migrate those screens to Compose first using an XML-to-Compose migration approach.

What is the difference between Grid and LazyVerticalGrid in Compose?

LazyVerticalGrid is for large homogeneous data sets requiring lazy loading, while Grid is an experimental two-dimensional layout API for structural screen layouts with fixed item counts. Grid does not support lazy loading.

Are the Compose Grid, FlexBox, and MediaQuery APIs stable?

No. Grid, FlexBox, and MediaQuery are experimental APIs available from Compose 1.11.0-beta01 and are subject to change. You must opt in with annotations like @OptIn(ExperimentalGridApi::class) and confirm with users before adopting them.