# JavaNoober/BackgroundLibrary

A framework for directly generating shape through Tags, no need to write shape.xml again（通过标签直接生成shape，无需再写shape.xml）

Repository: https://github.com/JavaNoober/BackgroundLibrary
Canonical: https://ross.abutalabs.com/products/backgroundlibrary
Language: Java
License: Apache-2.0
License Family: permissive
Topics: shape, shape-selector, selector, drawable, xml, stroke, android
Last push: 2026-08-15T19:51:19+00:00

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

## Adoption (not part of the score)
Stars 3884, forks 472 (observed 2026-08-28T04:08:28.193200+00:00)

## What it is
An Android library that lets developers generate shape and selector drawables directly via XML tag attributes (bl_*) on views, eliminating the need to write separate shape.xml files. It supports corners, solid colors, strokes, gradients, and state selectors seamlessly with native views.

## Use cases
- generate android shape drawables without xml files
- set rounded corners and borders on views via attributes
- replace shape.xml with inline view attributes
- create selector drawables directly in layout xml
- add gradient strokes to android views
- style android backgrounds without drawable resources

## When to choose
- you frequently write shape.xml/selector files for simple backgrounds in Android
- you want to reduce drawable resource file boilerplate in layouts
- your project uses AndroidX or support libraries and needs inline background styling

## When to avoid
- you need complex, programmatic, or highly dynamic drawable logic
- you prefer explicit drawable resource files for design-system consistency
- your team relies on Jetpack Compose rather than XML layouts

## Facets
- artifact type: library
- maturity: active
- function: ui-components, templating
- domain: mobile-development, android-tools, frontend
- platform: -
- tags: android, drawable, shape, selector, xml-attributes, ui-styling, jetpack, androidx, mobile

## Member repositories
- JavaNoober/BackgroundLibrary (main) score 87

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:28.193200+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:25:40.842272+00:00, confidence not recorded.
  - readme: https://github.com/JavaNoober/BackgroundLibrary (fetched 2026-08-28T04:08:28.193200+00:00, sha a3c8315ed19a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
