Android Material 3 UX audit
Reviews Jetpack Compose screens against Material 3 and scores them, so your Android app looks and feels native.
What we improved
Corrected the shape scale mapping. The original assigned dialogs to `medium` (12dp) and FABs to `extraLarge` (28dp). In Material 3 dialogs and bottom sheets use `extraLarge` (28dp), the standard FAB uses `large` (16dp), the small FAB `mediu
Improved by YourAISkill from the original by rcosteira79, under its MIT licence. The download includes the author's licence and a CHANGES.md listing every change. Both Claude reviews read the improved version.
Claude's review
8/10 Accurate M3 values (size classes, motion and shape tokens, edge to edge and predictive back rules) plus a scored 10-category audit with ripgrep checks.
We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.
In detail
Use when designing or reviewing Android UI — applies Material Design 3 UX principles covering touch targets, spacing, navigation patterns, accessibility, animation timing, and platform conventions. Includes an M3 compliance audit that scores screens across 10 categories. Complements the compose skill with design-level decisions.
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide
Safety check
Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: android-ux
description: "Use when designing or reviewing Android UI built with Jetpack Compose and Material Design 3: touch targets, spacing, adaptive layouts and foldable postures, navigation patterns, edge to edge and predictive back, accessibility, motion timing and reduced motion, user controlled contrast, and platform conventions. Includes an M3 compliance audit that scores a screen Pass, Partial or Fail across 10 categories, with the correct shape, motion and color token values inline and ripgrep checks that find violations in a codebase."
---
<!-- Modified by YourAISkill (youraiskill.com) on 2 December 2026 from the original by rcosteira79. See CHANGES.md. -->
# Android UX
This skill covers the non-obvious platform facts and **reviewing** an existing screen for Material 3 compliance, not the basics of building M3 UI. Values below are Material 3 defaults as used by Compose Material 3; Material 3 Expressive releases add more steps and change some defaults, so when in doubt read the component's own `*Defaults` object in your version.
## Non-obvious platform facts
### Adaptive layouts and foldable postures
Width size classes: **Compact** under 600dp, **Medium** 600 to 839dp, **Expanded** 840dp and up. Newer adaptive guidance and libraries add **Large** (1200dp) and **Extra-large** (1600dp); use them if your library version exposes them. Pick layout by window size, never by device type, and re-evaluate on every configuration change (multi-window, unfolding, desktop windowing).
Foldables add postures beyond size classes. **Never place interactive content or critical information across a hinge.**
| Posture | Detection | Layout behavior |
|---|---|---|
| Flat (unfolded) | no folding feature, or `FLAT` | Treat as Medium or Expanded by width |
| Half-opened, horizontal fold (tabletop) | `HALF_OPENED` + `Orientation.HORIZONTAL` | Content above the hinge, controls below; read the hinge bounds, never assume a 50/50 split |
| Half-opened, vertical fold (book) | `HALF_OPENED` + `Orientation.VERTICAL` | List on one side, detail on the other |
| Folded (cover screen) | small window | Treat as Compact |
With the Material 3 adaptive library (`androidx.compose.material3.adaptive`), `currentWindowAdaptiveInfo()` gives you both the size class and the posture (`windowPosture.isTabletop`, `windowPosture.hingeList` with each hinge's bounds). `NavigationSuiteScaffold` and `ListDetailPaneScaffold` handle the common cases for you. The lower level Jetpack WindowManager form:
```kotlin
@Composable
fun FoldAwareLayout() {
val context = LocalContext.current
val layoutInfo by WindowInfoTracker.getOrCreate(context)
.windowLayoutInfo(context) // needs a @UiContext: Activity, InputMethodService or createWindowContext()
.collectAsStateWithLifecycle(initialValue = WindowLayoutInfo(emptyList()))
val fold = layoutInfo.displayFeatures.filterIsInstance<FoldingFeature>().firstOrNull()
when {
fold?.state == FoldingFeature.State.HALF_OPENED ->
if (fold.orientation == FoldingFeature.Orientation.HORIZONTAL) TabletopLayout(fold.bounds)
...From rcosteira79's repository, MIT licence.
Related skills
-
Checked
Compose UI test setup
Sets up the right Gradle test dependencies for Jetpack Compose UI tests, so they launch instead of failing early.
8/101 credit -
Checked
Android Gradle Plugin upgrade
Moves Kotlin Multiplatform projects to Android Gradle Plugin 9 and fixes the build failures it causes.
8/101 credit -
Checked
Android Edge-to-Edge Fix
Makes Jetpack Compose apps draw edge to edge, so buttons, lists and text fields never hide behind system bars.
8/101 credit -
Checked
Offline Android LLM apps
Builds an Android app that runs an open LLM on the phone with LiteRT, so it works without a server.
7/101 credit -
Checked
Android TV Compose Migration
Moves an Android TV app from old Leanback screens to Compose for TV, with remote control focus that works.
7/101 credit -
Checked
CometChat Android Chat Setup
Adds working CometChat chat screens to your Android app in Kotlin or Jetpack Compose, set up in the right order.
7/101 credit