# androidx/constraintlayout

ConstraintLayout is an Android layout component which allows you to position and size widgets in a flexible way

Repository: https://github.com/androidx/constraintlayout
Canonical: https://ross.abutalabs.com/products/constraintlayout
Language: Java
License: Apache-2.0
License Family: permissive
Archived: true
Last push: 2023-10-24T22:10:06+00:00

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

## Adoption (not part of the score)
Stars 1085, forks 174 (observed 2026-08-28T04:03:31.703997+00:00)

## What it is
ConstraintLayout is an Android layout library from AndroidX that lets developers position and size UI widgets flexibly using a constraint-based system. It supports both the classic Android View system and Jetpack Compose, including MotionLayout for animations.

## Use cases
- build responsive android layouts with constraints
- position and size ui widgets flexibly on android
- create animated ui transitions with motionlayout
- use constraint-based layouts in jetpack compose
- replace nested view hierarchies with a flat layout

## When to choose
- you are building an Android app UI with complex, adaptive layouts
- you want flat view hierarchies for better performance
- you need MotionLayout animations in Views or Compose

## When to avoid
- you are building for platforms other than Android
- you only need simple linear or stacked layouts
- your project does not use AndroidX

## Facets
- artifact type: library
- maturity: stable
- function: ui-components, animation
- domain: mobile-development, frontend
- platform: -
- tags: android, jetpack-compose, constraint-layout, motionlayout, layout-manager, mobile

## Member repositories
- androidx/constraintlayout (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:31.703997+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-30T06:49:42.378698+00:00, confidence not recorded.
  - readme: https://github.com/androidx/constraintlayout (fetched 2026-08-28T04:03:31.703997+00:00, sha 032d7de44934)
- Data as of 2026-08-30T08:39:29.467469+00:00.
