# grantland/android-autofittextview

A TextView that automatically resizes text to fit perfectly within its bounds.

Repository: https://github.com/grantland/android-autofittextview
Canonical: https://ross.abutalabs.com/products/android-autofittextview
Language: Java
License: Apache-2.0
License Family: permissive
Last push: 2019-01-12T23:57:12+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 5679, "days_push": 2790, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4250, forks 686 (observed 2026-08-28T04:08:40.414196+00:00)

## What it is
An Android library providing a TextView subclass that automatically resizes its text to fit within its bounds. It can be applied to any TextView via a helper, an XML layout wrapper, or a built-in widget.

## Use cases
- make text shrink to fit a fixed-size TextView on Android
- display headlines that fit within a button or label regardless of length
- auto-scale text size in XML layouts with min/max text size
- apply autofit behavior to any existing TextView subclass in code

## When to choose
- you need text to always fit its container on Android without truncation
- you want a drop-in TextView replacement or layout wrapper for autofit behavior

## When to avoid
- you are not developing for Android
- you need a maintained library with recent updates - the last release was in 2019
- Android's built-in autosizing TextView (android:autoSizeTextType) meets your needs

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components
- domain: mobile-development, android-tools
- platform: -
- tags: textview, autofit-text, android-ui, text-sizing, android

## Member repositories
- grantland/android-autofittextview (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:40.414196+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-29T18:22:11.373919+00:00, confidence not recorded.
  - readme: https://github.com/grantland/android-autofittextview (fetched 2026-08-28T04:08:40.414196+00:00, sha e7c7925c7775)
- Data as of 2026-08-30T08:39:29.467469+00:00.
