# getActivity/ShapeView

Shape 支持在布局中直接定义啦，支持设置阴影，文字渐变色，状态选择器

Repository: https://github.com/getActivity/ShapeView
Canonical: https://ross.abutalabs.com/products/shapeview
Language: Java
License: Apache-2.0
License Family: permissive
Topics: shapetextview, shapeview, shapebutton, shapeframelayout, shapelinearlayout, shapeconstraintlayout, shaperelativelayout, supertextview, backgroundlibrary, shapeedittext, shapeimageview, shadowlayout, android, textview, edittext, recyclerview, button, shape
Last push: 2026-05-01T11:13:07+00:00

## Health v2 (maintenance only)
Score: 80/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 80, release rhythm 69, longevity 100
- inputs: {"age_days": 1873, "days_push": 124, "days_rel": 124, "gap_med": 65, "n_releases_24m": 6}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1057, forks 103 (observed 2026-08-28T04:03:24.867691+00:00)

## What it is
An Android UI library that lets developers define shape drawables (rectangles, ovals, gradients, shadows, state selectors) directly in XML layouts via custom views like ShapeButton, ShapeTextView, and ShapeEditText. It eliminates the need to write separate drawable resource files, with Java builder APIs for runtime changes.

## Use cases
- define rounded button backgrounds directly in android xml layouts
- add shadows to android views without drawable files
- set gradient text color on android textview
- create state selector backgrounds for buttons in layout
- replace shape drawable xml resources with layout attributes
- style edittext and imageview shapes in android

## When to choose
- building Android apps that heavily use shape drawables and want less XML boilerplate
- you want shape, shadow, and gradient styling defined inline in layouts
- your project is on AndroidX and Java

## When to avoid
- your project still uses the old Support libraries without migration plans
- you prefer Compose-based UI instead of XML layouts
- you need cross-platform UI components

## Facets
- artifact type: library
- maturity: active
- function: ui-components, graphics
- domain: mobile-development, android-tools, frontend
- platform: jvm
- tags: android-ui, shape-drawable, custom-views, xml-attributes, androidx, gradient-text, shadow-layout, state-selector, android, mobile

## Member repositories
- getActivity/ShapeView (main) score 80

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:24.867691+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:57:57.087193+00:00, confidence not recorded.
  - readme: https://github.com/getActivity/ShapeView (fetched 2026-08-28T04:03:24.867691+00:00, sha 3c9cdf0c915a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
