# dongjunkun/CouponView

半圆锯齿背景虚线边框组合实现简单优惠券效果，可实现一些简单组合

Repository: https://github.com/dongjunkun/CouponView
Canonical: https://ross.abutalabs.com/products/couponview
Homepage: http://www.jianshu.com/p/b27d0f9b3856
Language: Java
License: Apache-2.0
License Family: permissive
Topics: coupon, dongjunkun, couponview
Last push: 2017-07-17T06:52:21+00:00

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

## Adoption (not part of the score)
Stars 1525, forks 229 (observed 2026-08-28T04:04:58.295504+00:00)

## What it is
An Android custom View library that draws coupon-style backgrounds with semicircle notches and dashed borders, fully customizable via XML attributes or code. It also provides a helper class to add the same notched background to other View subclasses.

## Use cases
- draw coupon ticket UI with notched edges in an Android app
- add dashed borders to a view without image assets
- create punch-hole semicircle edges on a card layout
- build promotional voucher screens in Android
- apply sawtooth background effects to LinearLayout or TextView
- customize dash line color, gap, and margins per side

## When to choose
- you need coupon/ticket visuals on Android without PNG backgrounds
- you want per-side control of notches and dashed lines via XML attributes
- you want to reuse the effect on custom View subclasses via the helper

## When to avoid
- you need coupon UI on iOS, web, or non-Android platforms
- you need complex animated or interactive coupon effects beyond static drawing
- you need a maintained library with recent updates (last release 2017)

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, graphics
- domain: mobile-development, android-tools, e-commerce
- platform: jvm
- tags: android-view, coupon, custom-view, dashed-border, semicircle-notch, ui-widget, android

## Member repositories
- dongjunkun/CouponView (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:58.295504+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-30T04:31:39.216393+00:00, confidence not recorded.
  - readme: https://github.com/dongjunkun/CouponView (fetched 2026-08-28T04:04:58.295504+00:00, sha 9b93a0aee4c6)
  - homepage: http://www.jianshu.com/p/b27d0f9b3856 (fetched 2026-08-29T11:34:17.936530+00:00, sha 1a8f463daed2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
