# wildma/ScreenAdaptation

:fire:一种非常好用的 Android 屏幕适配——smallestWidth 限定符适配 https://www.jianshu.com/p/1302ad5a4b04

Repository: https://github.com/wildma/ScreenAdaptation
Canonical: https://ross.abutalabs.com/products/screenadaptation
Language: Java
License Family: other
Topics: screenadaptation, screen, adaptation, adapterview
Last push: 2021-10-17T07:53:18+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3072, "days_push": 1781, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1562, forks 544 (observed 2026-08-28T04:05:03.942187+00:00)

## What it is
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
- artifact type: library
- maturity: maintenance
- function: ui-components, developer-tools
- domain: mobile-development, android-tools, cross-platform
- platform: -
- tags: screen-adaptation, smallest-width-qualifier, dimens, android-ui, java, android, mobile

## Member repositories
- wildma/ScreenAdaptation (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:03.942187+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:29:42.519098+00:00, confidence not recorded.
  - readme: https://github.com/wildma/ScreenAdaptation (fetched 2026-08-28T04:05:03.942187+00:00, sha 61596d68440b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
