# ladingwu/dimens_sw

Android UI适配方案

Repository: https://github.com/ladingwu/dimens_sw
Canonical: https://ross.abutalabs.com/products/dimens_sw
Language: Java
License Family: other
Topics: android, android-app
Last push: 2019-06-10T03:16:14+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3003, "days_push": 2641, "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 1748, forks 387 (observed 2026-08-28T04:05:30.968110+00:00)

## What it is
An Android screen adaptation solution based on the smallestWidth (sw) qualifier. It generates dimens resource files for various screen widths from a design draft size via a Java generator.

## Use cases
- adapt android ui to different screen sizes
- generate dimens files from design draft width
- smallest width based screen adaptation
- make android layout fit multiple devices
- convert design px to dp for android screens

## When to choose
- you need a simple sw-based dimens generation approach for Android
- your design draft has a fixed width and you want matching dimens values

## When to avoid
- you prefer modern approaches like Jetpack Compose or ConstraintLayout percent-based layouts
- you need an actively maintained solution with recent updates

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, developer-tools
- domain: mobile-development, android-tools, cross-platform
- platform: jvm
- tags: screen-adaptation, smallest-width, dimens-generator, ui-fit, android-screen-adapter, code-generation, android

## Member repositories
- ladingwu/dimens_sw (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:30.968110+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-30T03:28:52.416225+00:00, confidence not recorded.
  - readme: https://github.com/ladingwu/dimens_sw (fetched 2026-08-28T04:05:30.968110+00:00, sha d461fde61154)
- Data as of 2026-08-30T08:39:29.467469+00:00.
