Comments (6)
@qiushui95 可以说下您的机型和系统,崩溃的话截个崩溃日志的图;您直接这样说,我很难定位问题所在。
from xpopup.
应该和机型无关
2018-12-24 17:00:19.845 28719-28719/com.lxj.xpopupdemo E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.lxj.xpopupdemo, PID: 28719
java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.View.findViewById(int)' on a null object reference
at com.lxj.xpopupdemo.fragment.QuickStartDemo.init(QuickStartDemo.java:28)
at com.lxj.xpopupdemo.MainActivity.callFragmentInit(MainActivity.java:74)
at com.lxj.xpopupdemo.MainActivity.access$000(MainActivity.java:21)
at com.lxj.xpopupdemo.MainActivity$2.run(MainActivity.java:64)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6942)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
from xpopup.
将您的BaseFragment内的init放到onViewCreated内执行就可以了。
旋转屏幕过后fragment.getView()获取到的是null
from xpopup.
@qiushui95 恩,多谢您提供的Issue。最新的Demo已修复这个Bug,可以下载看看。
from xpopup.
你这个修复太牛逼了。。。。。。我尽无言以对
from xpopup.
@qiushui95 就问你6不6
from xpopup.
Related Issues (20)
- 混淆后 空指针 at com.lxj.xpopup.util.SmartGlideImageLoader.loadImage(Unknown Source:1) HOT 1
- android 13 Software rendering doesn't support hardware bitmaps 闪退
- 指定某个view拖拽才生效
- 建议popupView的回调中返回popupView的对象
- 阿语环境下 AttachPopupView 弹窗偏移
- kotlin项目无法show弹出或者弹出后空异常,java正常
- onDrag方法中的percent参数不会到1,弹窗显示不完整 HOT 1
- 希望库内的view移植到AppCompat
- 已解决
- ImageViewerPopupView 设置背景改为Drawable
- 关于拖拽小问题
- 关于拖拽弹窗问题 HOT 1
- // 可以混合使用,只需要加两行代码就可以在XpopWindow中直接使用Compose代码了 HOT 1
- bugly上报的bug
- XPopup 中设置了 isTouchThrough(true) ,触摸平移一个 imageview ,当 popview dismiss 以后,当前自定义的 view类中的 dispatchTouchEvent都不执行了
- dismiss方法会走多次 HOT 1
- 夜间与日间模式(暗黑模式)设置无效setDefaultNightMode
- 能否增加在service弹出
- 自定义DrawerPopupView时,设置topMargin后 显示范围虽然变了 但阴影还在
- vivoX60系统为Android13手势返回没屏蔽掉 HOT 2
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 xpopup.