自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 14137 2

原创 找不到org.reactivestreams.Publisher的类文件

如果使用RxJava的jar包,出现这样的提示,那是因为还缺少一个jar包 还需要reactive-streams.jar包

2018-07-17 14:25:16 9550 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 3399 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 639 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 1840 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 655 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 987 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 27114 19

找不到org.reactivestreams.Publisher的类文件

找不到org.reactivestreams.Publisher的类文件,针对使用jar的时候缺少文件,包含RxJava.jar和reactive-streams.jar两个包。这个Rejava.jar才能使用

2018-07-17

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除