- 博客(8)
- 资源 (1)
- 收藏
- 关注

原创 Context.startForegroundService() did not then call Service.startForeground()产生Anr
直接上正题1解决办法//开启服务做兼容处理Intent intentOne = new Intent(this, BackService.class);if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { startForegroundService(intentOne);}else { startServic...
2019-06-18 19:41:14
14051
2

原创 找不到org.reactivestreams.Publisher的类文件
如果使用RxJava的jar包,出现这样的提示,那是因为还缺少一个jar包还需要reactive-streams.jar包
2018-07-17 14:25:16
9419
4
原创 微信小程序做心电图
无图无真相,不多逼逼,直接上代码,不需要过多研究,直接复制黏贴就能运行index.js中的全部代码// index.js// 获取应用实例const app = getApp()var width = 0;var height = 0;var hLineNum = 0;var vLineNum = 0;var x_start = 25;var lineCtx = null;var grid_width = 5;var timeId = null;Page({ data...
2022-02-10 14:01:12
2993
26
原创 PopupWindow留白,沉侵式状态栏下PopupWindow遮盖不全
如图所示Rect visibleFrame = new Rect(); anchor.getGlobalVisibleRect(visibleFrame); int height = anchor.getResources().getDisplayMetrics().heightPixels - visibleFrame.bottom; setHeight(height);和int[] location ...
2021-06-03 15:56:48
572
3
原创 RecyclerView展示数据不完整,用RelativeLayout嵌套,还不能正常展示,嵌套过深不能正常展示,嵌套自定义View不展示等
最近做一个学习报告界面如图其中02知识点掌握度展示不全.明明18个item,而UI上只展示三个.....这是网上说,用RelativeLayout<RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/dimen_50dp"> <androidx.rec
2021-01-30 11:31:54
1751
3
原创 散状花瓣图,玫瑰图,南丁格尔图
业务图,业务代码public class RoseChart extends View { //图标尺寸 private int chart_size; private static Context context; //传入参数(各个风向百分比) private List<Float> percentageList; private List<St...
2020-12-15 18:34:51
582
1
原创 Toast断断续续的弹出,解决方案,Toast显示问题
针对以前的单利toast,先上最早的单利吐司不能用,不能用,不能用public static void show(Context context, String msg) {if (toast == null) { toast = Toast.makeText(context, msg, Toast.LENGTH_SHORT); } else { toast.setText(msg); ...
2020-08-07 14:29:21
935
2
原创 Couldn‘t find meta-data for provider with authority
这个原因很简单,妈的,网上没有用太多相关的文章,自己mark一下,这个错误是检查AndroidManifest.xml,里面的<provider android:name="androidx.core.content.FileProvider" android:authorities="包名.fileprovider" android:exported="fal...
2019-08-21 18:03:38
26726
19
找不到org.reactivestreams.Publisher的类文件
2018-07-17
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人