wildma/ScreenAdaptation
:fire:一种非常好用的 Android 屏幕适配——smallestWidth 限定符适配 https://www.jianshu.com/p/1302ad5a4b04 observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3072
- days_rel: n/a
- days_push: 1781
- n_releases_24m: 0
Adoption not part of the score
1562 stars · 544 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
An Android screen adaptation solution based on the smallestWidth qualifier scheme, generating dimens.xml files for various device widths so layouts scale precisely across screens. It includes a plugin to generate the resource files and demonstrates usage with @dimen/dp_XX references.
Use cases
- adapt android layouts to different screen sizes
- make a button fill screen width on all devices
- generate dimens.xml files from a design draft width
- support phones and tablets with one layout
- avoid runtime performance cost of screen adaptation
- migrate existing dp/sp layouts to an adaptive scheme
When to choose
- you want a stable, well-proven smallestWidth qualifier approach
- you need zero runtime overhead for screen adaptation
- you want layouts that don't break third-party libraries
- you prefer keeping standard dp/sp units for easy future migration
When to avoid
- you prefer runtime-based adaptation libraries that auto-scale without generated resources
- your project targets Jetpack Compose rather than XML layouts
- you need frequent new device-width buckets without regenerating files
- you require an actively maintained project with a license
Facets
library · maturity maintenance
ui-components developer-tools mobile-development android-tools cross-platform screen-adaptation smallest-width-qualifier dimens android-ui java android mobile
1 source
- readme: https://github.com/wildma/ScreenAdaptation · fetched 2026-08-28 · 61596d68440b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| wildma/ScreenAdaptation | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="wildma/ScreenAdaptation")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem