# SwitchButton

SwitchButton.An beautiful+lightweight+custom-style-easy switch widget for Android,minSdkVersion >= 11

Repository: https://github.com/zcweng/SwitchButton
Canonical: https://ross.abutalabs.com/products/switchbutton
Homepage: https://github.com/zcweng/SwitchButton
Language: Kotlin
License: MIT
License Family: permissive
Last push: 2024-01-12T02:57:56+00:00
Link (homepage): https://github.com/zcweng/SwitchButton

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3540, "days_push": 964, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2751, forks 412 (observed 2026-08-28T04:07:18.048632+00:00)

## What it is
A lightweight, customizable switch/toggle button widget for Android with no third-party dependencies and no drawable resources. It supports drag interaction, animations, and extensive style customization via XML attributes.

## Use cases
- add a beautiful toggle switch to my Android app
- customize the colors and shadow of an Android switch widget
- replace the default Android Switch with a more stylish toggle
- support drag gestures on a toggle button
- use a lightweight switch widget without image resources

## When to choose
- you need a highly customizable, dependency-free toggle switch on Android
- you want drag support and animation effects out of the box
- your minSdkVersion is 14 or higher and you want a single-file widget

## When to avoid
- you need a switch widget for platforms other than Android
- you prefer Jetpack Compose components over XML-based views
- you need actively developed features beyond basic toggle functionality

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, animation
- domain: mobile-development, android-tools, frontend
- platform: -
- tags: switch-widget, toggle-button, android-ui, custom-views, android

## Member repositories
- zcweng/SwitchButton (main) score 32
- zcweng/ToggleButton (mirror) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:18.048632+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-30T08:18:55.829139+00:00, confidence not recorded.
  - readme: https://github.com/zcweng/SwitchButton (fetched 2026-08-28T04:07:18.048632+00:00, sha b8b0e60c3013)
  - homepage: https://github.com/zcweng/SwitchButton (fetched 2026-08-29T09:56:50.078132+00:00, sha f94a99d19fc0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
