wisdomtl / floatwindow Goto Github PK
View Code? Open in Web Editor NEWA Util class to control window showing in Android. FloatWindow could be clicked, dragged, auto-stick to border of screen, auto-dimiss.
A Util class to control window showing in Android. FloatWindow could be clicked, dragged, auto-stick to border of screen, auto-dimiss.
发现一个严重的问题,还要对底部导航和状态栏做处理,还有就是这个设置之后已经存在的界面,还要统一调用一下这个方法,要不然还是以前的状态,总不能在onResume里面每次操作吧。
在小米的手机上 使用悬浮窗会出现闪退的问题
Process: taylor.com.floatwindow, PID: 2609
android.view.WindowManager$BadTokenException: Unable to add window android.view.ViewRootImpl$W@8340485 -- permission denied for window type 2038
at android.view.ViewRootImpl.setView(ViewRootImpl.java:859)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:356)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:94)
at taylor.com.floatwindow.FloatWindow.show(FloatWindow.kt:162)
at taylor.com.floatwindow.FloatWindow.show(FloatWindow.kt:186)
at taylor.com.floatwindow.FloatWindow.show$default(FloatWindow.kt:182)
at taylor.com.floatwindow.GravityActivity.showTopGravityWindow(GravityActivity.kt:54)
at taylor.com.floatwindow.GravityActivity.access$showTopGravityWindow(GravityActivity.kt:19)
at taylor.com.floatwindow.GravityActivity$onCreate$1.onClick(GravityActivity.kt:28)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.