# pinguo-zhouwei/CustomPopwindow

对PopupWindow常用API的简单封装，几行代码就搞定PopupWindow弹窗，使用Builder模式，链式调用，像使用AlertDialog 一样

Repository: https://github.com/pinguo-zhouwei/CustomPopwindow
Canonical: https://ross.abutalabs.com/products/custompopwindow
Language: Java
License Family: other
Topics: popup-window
Last push: 2017-07-05T07:05:09+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": 3563, "days_push": 3346, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1412, forks 296 (observed 2026-08-28T04:04:39.148534+00:00)

## What it is
An Android library that wraps Android's PopupWindow with a Builder-pattern, chainable API so popups can be configured and shown in a few lines of code, similar to using AlertDialog. It adds conveniences like background dimming, custom animations, and control over dismiss-on-outside-touch behavior.

## Use cases
- show a popup window in Android with a few lines of code
- create a dropdown popup anchored to a view
- dim the background when a popup is shown
- prevent popup from closing when tapping outside
- add custom show/dismiss animations to a popup
- use PopupWindow like AlertDialog with chained configuration

## When to choose
- you frequently show PopupWindow-based menus or tooltips in an Android app and want to eliminate boilerplate
- you want AlertDialog-style chained configuration for popups
- you need background dimming or outside-touch dismiss control with Android 6.0/7.0 compatibility

## When to avoid
- you need dialogs with buttons and standard dialog UI (use AlertDialog or Material Components instead)
- you use Jetpack Compose, where PopupWindow wrappers are unnecessary
- you need an actively maintained library with a license and ongoing updates

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, mobile-framework
- domain: mobile-development, android-tools, developer-tools
- platform: jvm
- tags: popup-window, builder-pattern, android-ui, chained-api, dialog, android, mobile

## Member repositories
- pinguo-zhouwei/CustomPopwindow (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:39.148534+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:38:21.549874+00:00, confidence not recorded.
  - readme: https://github.com/pinguo-zhouwei/CustomPopwindow (fetched 2026-08-28T04:04:39.148534+00:00, sha 1dfd88ef895b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
