Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Notifications You must be signed in to change notification settings

regou314/Android-FloatWindow

Repository files navigation

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

Android custom floating window The principle is very simple, is to borrow WindowManager this management class to achieve.
1.First, add permission to use AndroidManifest.xml:uses-permission android: name = "android.permission.SYSTEM_ALERT_WINDOW"
2.Two lines of code to achieve custom pop-up
viewView contentView = inflater.inflate (R.layout.layout_pop, null);
NewFloatMainWindow.getFloatMainWindow (MainActivity.this, NewFloatMainWindow.LOCATION_LEFT, contentView);
3.Pop-up window easily

preview


结束

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%

AltStyle によって変換されたページ (->オリジナル) /