Comments (1)
08-24 17:48:28.381 7140 7140 E AndroidRuntime: java.lang.NullPointerException: null cannot be cast to non-null type android.view.ViewGroup
16008-24 17:48:28.381 7140 7140 E AndroidRuntime: at java.util.Objects.requireNonNull(Objects.java:245) 16108-24 17:48:28.381 7140 7140 E AndroidRuntime: at com.petterp.floatingx.view.FxMagnetView.v(SourceFile:1) 16208-24 17:48:28.381 7140 7140 E AndroidRuntime: at com.petterp.floatingx.view.FxMagnetView.s(SourceFile:1) 16308-24 17:48:28.381 7140 7140 E AndroidRuntime: at com.petterp.floatingx.view.FxMagnetView.b(Unknown Source:0) 16408-24 17:48:28.381 7140 7140 E AndroidRuntime: at com.petterp.floatingx.view.b.run(Unknown Source:4) 16508-24 17:48:28.381 7140 7140 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:938) 16608-24 17:48:28.381 7140 7140 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99) 16708-24 17:48:28.381 7140 7140 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:233) 16808-24 17:48:28.381 7140 7140 E AndroidRuntime: at android.os.Looper.loop(Looper.java:344) 16908-24 17:48:28.381 7140 7140 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:8204) 17008-24 17:48:28.381 7140 7140 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 17108-24 17:48:28.381 7140 7140 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:589) 17208-24 17:48:28.381 7140 7140 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1071)
排查了一遍,发现了唯一可能的地方,FxManagerView内部有强转ViewGroup的时刻,详见updateSize(),您可以更新到1.0.4解决此问题。 感谢反馈
from floatingx.
Related Issues (20)
- 悬浮窗布局中如果设置了布局中View的点击事件,当点击某个View后拖动悬浮窗会出现跳动 HOT 4
- 希望能开放查询所有显示的浮窗的接口 HOT 7
- 可以局部在ConstraintLayout 展示吗? HOT 3
- FxLocationHelper 中有个错误 HOT 1
- 全局浮窗内用recyclerView无法滑动 HOT 1
- 全局浮窗内用recyclerView无法滑动 HOT 1
- 应用内浮窗会有内存泄漏 HOT 4
- 如何处理长按事件 HOT 2
- 通过 MediaProject 录制屏幕的时候不展示悬浮球应该怎么处理?或者说不把悬浮球录制进去 HOT 1
- 悬浮窗能做到初始状态传递一个自定义View和整个屏幕一样大吗?然后在自定义View中去点击变成小窗模式,再点击还原到全屏悬浮窗 HOT 2
- 两个Activity如果使用了共享元素动画就会出问题 HOT 1
- setOffsetXY参数不支持构造者模式 HOT 1
- IFxViewLifecycle InitView 方法内设置View的子view点击事件无效 HOT 3
- 应用进程杀死问题 HOT 7
- 拖动松开以后,悬浮窗会自动贴边,如何判断悬浮窗是贴的左边还是右边? HOT 4
- 系统悬浮窗一闪而过 HOT 2
- App级别浮窗在多个Activity之间显示和隐藏会有问题 HOT 9
- 有没有点击悬浮窗外部消失的方法 HOT 1
- show()方法没调用的时候,updateViewContent没有效果 HOT 1
- 小米手机第一次弹悬浮窗切换页面悬浮窗自动消失了 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from floatingx.