上一页 1 2 3 4 5 6 7 ··· 25 下一页
  2023年9月8日
摘要: https://juejin.cn/post/6854573220385947661 https://zhuanlan.zhihu.com/p/374036719 阅读全文
posted @ 2023-09-08 14:47 巫山老妖 阅读(146) 评论(0) 推荐(0)
摘要: 当直接运行release版本时,报错 Error: The apk for your currently selected variant cannot be signed. Please specify a signing configuration for this variant (relea 阅读全文
posted @ 2023-09-08 14:34 巫山老妖 阅读(1557) 评论(0) 推荐(0)
  2022年11月3日
摘要: 版本不匹配造成的 /*implementation 'androidx.appcompat:appcompat:1.5.1' implementation 'com.google.android.material:material:1.7.0' implementation 'androidx.co 阅读全文
posted @ 2022-11-03 16:00 巫山老妖 阅读(565) 评论(0) 推荐(0)
  2022年10月17日
摘要: 问题: 当一个字段为null时,json数据不显示字段名称 Map m = New HashMap();m.put(“a”, null);输出:new Gson().toJson(m);预期结果:{a:null}实际结果:{} 解决方式:使用 GsonBuilder gsonbuilder = ne 阅读全文
posted @ 2022-10-17 17:19 巫山老妖 阅读(264) 评论(0) 推荐(0)
  2022年9月28日
摘要: 1、静态设置 <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <!--填充色--> 阅读全文
posted @ 2022-09-28 19:41 巫山老妖 阅读(1252) 评论(0) 推荐(0)
  2022年9月21日
摘要: App中,有很大一部分场景是点击按钮,向服务端提交数据,由于网络请求需要时间,用户很可能会多次点击,造成数据重复提交,造成各种莫名其妙的问题。 因此,防止按钮多次点击,是Android开发中一个很重要的技术手段。 以前的处理方式 网上查找到的,或者你可能会想到的方法大概有这些: 1.每个按钮点击事件 阅读全文
posted @ 2022-09-21 15:01 巫山老妖 阅读(664) 评论(0) 推荐(0)
  2022年9月15日
摘要: 在AS上新建了一个项目,默认的开发语言是kotlin,当项目加载完成后,发现无法编译,并报出如下错误: One or more issues found when checking AAR metadata values: The minCompileSdk (33) specified in a 阅读全文
posted @ 2022-09-15 14:19 巫山老妖 阅读(11713) 评论(0) 推荐(0)
  2022年9月6日
摘要: 给EditText添加上监听,根据自己的需求,在相应的监听上写上相应的功能 tv_editText = findViewById(R.id.tv_editText); tv_editText.addTextChangedListener(new TextWatcher() { @Override p 阅读全文
posted @ 2022-09-06 16:15 巫山老妖 阅读(395) 评论(0) 推荐(0)
  2022年8月14日
摘要: 如图所示:矩形色温条中,拖动圆点获取当前色温值 1、自定义属性 res->values下创建attrs.xml文件 <declare-styleable name="RectangleWheel"> <!-- 矩形宽高 --> <attr name="rectangleWheel_witch" fo 阅读全文
posted @ 2022-08-14 20:03 巫山老妖 阅读(166) 评论(1) 推荐(0)
  2022年8月13日
摘要: 如图所示:拖动进度条,松开时离哪个刻度进,就自动滑到临近的刻度位置 1、自定义属性 res->values下创建attrs.xml文件 <declare-styleable name="EasySeekBar"> <attr name="configuration" format="string"/ 阅读全文
posted @ 2022-08-13 21:59 巫山老妖 阅读(110) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 25 下一页