Skill Wiki v0.1.0
pattern @android-compose/pattern-responsive-via-window-size-class

Responsive Via Window Size Class

Read the current window dimensions through `currentWindowAdaptiveInfo()` and switch layout topology by `WindowWidthSizeClass` (Compact / Medium / Expanded) and `WindowHeightSizeClass`. Compact = phone portrait (1-pane).…

Skill
@android-compose
Domain
android-compose
Version
0.1.0
Quality
4.0
Edges
3 out · 2 in
Tokens
145/433/721
$ prime install @android-compose/pattern-responsive-via-window-size-class

Projection

Always in _index.xml · the agent never has to ask for this.

ResponsiveViaWindowSizeClass [pattern] v0.1.0

Read the current window dimensions through currentWindowAdaptiveInfo() and switch layout topology by WindowWidthSizeClass (Compact / Medium / Expanded) and WindowHeightSizeClass. Compact = phone portrait (1-pane). Medium = unfolded foldable / small tablet (1.5-pane or list-detail). Expanded = tablet / desktop / large foldable (2-pane or 3-pane). Don't write if (configuration.screenWidthDp > 600)-style breakpoints — that hard-codes thresholds the platform may revise and ignores the proper API.

Source

prime-system/examples/android-compose/primes/compiled/@android-compose/pattern-responsive-via-window-size-class/atom.yaml

Compiled at 2026-05-10