- 博客(4)
- 收藏
- 关注
翻译 简单BaseFragment懒加载
*首先声明我们fragment是否加载的标记 Fragment的View加载完毕的标记 private boolean isViewCreated; Fragment对用户可见的标记 private boolean isUIVisible; ** 抽Baseframment方法 ** public View onCreateView(@NonNull LayoutI...
2019-04-07 10:42:53
199
原创 web加载html
将字符串切成集合 String picture = xqBean.getResult().getPicture(); //截取字符串 list = Arrays.asList(picture.split(",")); web加载html webView.loadDataWithBaseURL(null, details, “text / html”, “UTF-8”, n...
2019-04-04 08:21:24
188
原创 Zxing依赖集成二维码
先导入依赖 implementation 'com.journeyapps:zxing-android-embedded:3.6.0' implementation 'cn.bingoogolapple:bga-qrcode-zxing:1.3.4' implementation 'com.github.bumptech.glide:glide:4.8.0' 添加权限 <uses-perm...
2019-03-08 09:10:41
1380
原创 全局捕获异常
新建一类实现Thread.UncaughtExceptionHandler接口 重新方法uncaughtException @Override public void uncaughtException(Thread t, Throwable e) { Log.e(“myMessage”,“线程 “+t.getName() +” 出现异常:”+e.getMessage()); } 之后在app类 ...
2019-03-07 09:14:28
213
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人