Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

Android-FloatWindow

> 编程语言
Open source

Android custom FloatWindow, can be suspended in any app, any desktop

376 stars0 likes0 views
WebsiteGitHub

About

Android custom FloatWindow, can be suspended in any app, any desktop

FloatWindow

readme-中文

Android自定义悬浮窗

原理很简单,就是借用了WindowManager这个管理类来实现的。

1. 首先在AndroidManifest.xml中添加使用权限:

uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"

2.二行代码实现自定义弹窗view

View contentView = inflater.inflate(R.layout.layout_pop, null);
NewFloatMainWindow.getFloatMainWindow(MainActivity.this, NewFloatMainWindow.LOCATION_LEFT, contentView);

3.实现悬浮窗如此简单

readme-en

A custom floating window for Android.

The theory is quite simple, and the implemention borrows from the WindowManager class.

1. First, allow permission to use AndroidManifest.xml:uses-permission android:

name = "android.permission.SYSTEM_ALERT_WINDOW"

2. The following lines of code will implement your custom pop-up:

viewView contentView = inflater.inflate (R.layout.layout_pop, null);
NewFloatMainWindow.getFloatMainWindow (MainActivity.this, NewFloatMainWindow.LOCATION_LEFT, contentView

3. Pop-up window complete

preview

结束

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Java

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言