lihangleo2/ShadowLayout
可定制化阴影的万能阴影布局ShadowLayout 3.0 震撼上线。效果赶超CardView。阴影支持x,y轴偏移,支持阴影扩散程度,支持阴影圆角,支持单边或多边不显示阴影;控件支持动态设置shape和selector(项目里再也不用画shape了);支持随意更改颜色值,支持随意更改颜色值,支持随意更改颜色值。重要的事情说三遍 observed · 2026-08-28
Health v2 · maintenance only
70/100
- Activity 66
- Release rhythm 57
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 33.0
- age_days: 2612
- days_rel: 204
- days_push: 204
- n_releases_24m: 5
Adoption not part of the score
3737 stars · 425 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
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
library · maturity active
ui-components animation mobile-development android-tools web-design shadow-layout android-ui shape-drawable selector ripple-effect cardview-alternative android mobile
1 source
- readme: https://github.com/lihangleo2/ShadowLayout · fetched 2026-08-28 · 1418439c7cc7
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| lihangleo2/ShadowLayout | main | 70 |
For agents
markdown · JSON · MCP: product_card(name="lihangleo2/ShadowLayout")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem