# lihangleo2/ShadowLayout

可定制化阴影的万能阴影布局ShadowLayout 3.0 震撼上线。效果赶超CardView。阴影支持x,y轴偏移，支持阴影扩散程度，支持阴影圆角，支持单边或多边不显示阴影；控件支持动态设置shape和selector（项目里再也不用画shape了）；支持随意更改颜色值，支持随意更改颜色值，支持随意更改颜色值。重要的事情说三遍

Repository: https://github.com/lihangleo2/ShadowLayout
Canonical: https://ross.abutalabs.com/products/shadowlayout
Language: Java
License: MIT
License Family: permissive
Last push: 2026-02-10T06:55:53+00:00

## Health v2 (maintenance only)
Score: 70/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 66, release rhythm 57, longevity 100
- inputs: {"age_days": 2612, "days_push": 204, "days_rel": 204, "gap_med": 33.0, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3737, forks 425 (observed 2026-08-28T04:08:15.871412+00:00)

## What it is
An Android layout library that wraps any view to provide fully customizable shadows (color, offset, blur, corner radius, per-side hiding) as an alternative to CardView. It also replaces drawable XML files by supporting shape, selector, ripple, stroke, gradient backgrounds, and child view corner clipping programmatically.

## Use cases
- add customizable shadows to any Android view
- replace CardView with more flexible shadow control
- remove shape and selector drawable XML files from the project
- set per-corner rounded corners on views
- create buttons with pressed, selected, and ripple states without XML
- clip child views like video players to rounded corners

## When to choose
- you need shadow control beyond what CardView offers, like per-side shadows or custom shadow colors
- you want to eliminate drawable XML files by defining shapes and selectors in code or attributes
- you need dynamic runtime changes to shadows, backgrounds, or button states

## When to avoid
- you are not building Android apps
- you only need standard Material card shadows that CardView already provides
- your project is still on ShadowLayout 2.0 APIs and migration to 3.0 is not feasible

## Facets
- artifact type: library
- maturity: active
- function: ui-components, animation
- domain: mobile-development, android-tools, web-design
- platform: -
- tags: shadow-layout, android-ui, shape-drawable, selector, ripple-effect, cardview-alternative, android, mobile

## Member repositories
- lihangleo2/ShadowLayout (main) score 70

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:15.871412+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:29:09.577370+00:00, confidence not recorded.
  - readme: https://github.com/lihangleo2/ShadowLayout (fetched 2026-08-28T04:08:15.871412+00:00, sha 1418439c7cc7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
