# yhaolpz/FloatWindow

Andorid 任意界面悬浮窗，实现悬浮窗如此简单

Repository: https://github.com/yhaolpz/FloatWindow
Canonical: https://ross.abutalabs.com/products/floatwindow
Homepage: https://www.jianshu.com/p/18cbc862ba7b
Language: Java
License: Apache-2.0
License Family: permissive
Last push: 2021-10-13T09:50:11+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": 3214, "days_push": 1785, "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 4186, forks 651 (observed 2026-08-28T04:08:38.664756+00:00)

## What it is
An Android library that simplifies creating system-level floating windows (overlays) over any app screen, with drag support, edge-snapping animations, and automatic permission handling. It offers a fluent chained API for positioning, per-activity visibility filtering, and multi-window management.

## Use cases
- show a floating widget over any screen in my android app
- create a draggable overlay button that snaps to the screen edge
- display a floating window without manually handling SYSTEM_ALERT_WINDOW permission
- show a floating view only on specific activities
- manage multiple floating windows in one app
- hide the floating window when the app goes to background

## When to choose
- you need an overlay/floating view across activities or the whole app on Android
- you want built-in drag, edge-snap animations, and permission request handling
- you need percentage-based sizing to adapt across screen resolutions

## When to avoid
- you only need an in-layout floating widget within a single screen (use regular views or CoordinatorLayout)
- you need a library actively updated for the latest Android versions (last release 2021)
- you target only Android 10+ where modern overlay APIs may be preferable

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, animation, middleware
- domain: mobile-development, android-tools, cross-platform
- platform: jvm
- tags: floating-window, overlay, system-alert-window, android-ui, draggable-view, chained-api, android, mobile

## Member repositories
- yhaolpz/FloatWindow (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:38.664756+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:22:38.113209+00:00, confidence not recorded.
  - readme: https://github.com/yhaolpz/FloatWindow (fetched 2026-08-28T04:08:38.664756+00:00, sha 8db2962131b7)
  - homepage: https://www.jianshu.com/p/18cbc862ba7b (fetched 2026-08-29T09:13:04.884803+00:00, sha 9238e5447524)
- Data as of 2026-08-30T08:39:29.467469+00:00.
