Ross ROSS = Recommend OSS · open-source software intelligence for agents

niniloveyou/StateButton

一个可以用代码设置selector背景(按下去背景颜色更改,样式变化等等)的button, 再也不用写selector了 observed · 2026-08-28

github.com/niniloveyou/StateButton · Java · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

23/100

  • Activity 0
  • Release rhythm 8
  • 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: n/a
  • age_days: 3586
  • days_rel: n/a
  • days_push: 2779
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1285 stars · 220 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

An Android custom Button view that lets you set pressed, disabled, and normal state backgrounds, text colors, strokes, and corner radii directly in code or XML, eliminating the need to write selector drawables. Distributed via JitPack and written in Java.

Use cases

  • set button pressed state background color without writing selector xml
  • create rounded or stroke buttons programmatically on Android
  • customize button states (normal, pressed, disabled) in code
  • avoid writing drawable selector files for each button
  • add animated color transitions to Android buttons

When to choose

  • you're building an Android UI with many styled buttons and want to skip selector XML files
  • you need per-state colors, strokes, and radii configurable from Java or XML

When to avoid

  • you're not developing for Android
  • you need Material Design component behaviors like ripples beyond simple state styling
  • you need a very actively maintained dependency - last release was 2019

Facets

library · maturity maintenance

ui-components mobile-framework mobile-development android-tools frontend jvm android-button selector drawable-state ui-widget jitpack android mobile

1 source

Member repositories

RepositoryRoleHealth v2
niniloveyou/StateButtonmain23

For agents

markdown · JSON · MCP: product_card(name="niniloveyou/StateButton")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem