会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
document.write("");
tbUoky
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
11
12
···
20
下一页
2024年6月11日
psutil 检测exe是否已经运行
摘要: 安装依赖 pip install psutil 代码 import psutil def check_if_process_running(process_name): ''' Check if there is any running process that contains the given
阅读全文
posted @ 2024-06-11 11:18 人间春风意
阅读(27)
评论(0)
推荐(0)
2024年6月7日
Android RecyclerView 获取当前滚动到的Item项
摘要: 背景:RecyclerView 左右滑动时,需要获取当前显示在页面上的选项卡 步骤: 1. RecyclerView 添加addOnScrollListener,回调中可以直接获取对应Item Index xxxRecyclerView.addOnScrollListener(new Recycle
阅读全文
posted @ 2024-06-07 09:23 人间春风意
阅读(501)
评论(0)
推荐(0)
Android 水平滚动List 一项Item占满一页宽 设定单次滑动一次切换一次Item
摘要: 背景:水平滚动的List,一项Item占满页面宽度,相当于数量不定的选项卡,每个选项卡占满一页,左右滑动时,如何限制一次只能滑动一个Item 步骤: 1. 水平滚动布局 linearLayoutManager = new LinearLayoutManager(this); linearLayout
阅读全文
posted @ 2024-06-07 09:16 人间春风意
阅读(40)
评论(0)
推荐(0)
Android Adapter中组件EditText文本变化监听 addTextChangedListener
摘要: 问题背景:使用适配器显示一个列表,列表中Item中有EditText,滚动时会有EditText组件内容消失 步骤: 1. 在Adapter中,添加interface public interface OnEidtTextChangeListener { void xxxTextChanged(Ch
阅读全文
posted @ 2024-06-07 09:09 人间春风意
阅读(52)
评论(0)
推荐(0)
Android 获取当前获取焦点的组件
摘要: 在Activity中,使用this.getCurrentFocus(),获取当前焦点所在的View, 再判断是否是EditText(可调整成其他组件),看个人需要再做特定的逻辑处理 String content = "xxxxx"; EditText focusedEditText = null;
阅读全文
posted @ 2024-06-07 08:52 人间春风意
阅读(310)
评论(0)
推荐(0)
2024年6月4日
IDEA maven 项目 如何获取项目离线运行所需的全部依赖( .m2格式)
摘要: 背景:maven项目要将整个项目的依赖移植到某无法联网服务器进行测试,需要项目离线运行所需的全部依赖 步骤: 1. 首先需要有项目源码,解压后,使用IDEA Open Project 2. 在Settings中,配置settings.xml文件的完整路径,以及依赖文件夹的完整路径 setting.x
阅读全文
posted @ 2024-06-04 15:38 人间春风意
阅读(342)
评论(0)
推荐(0)
2024年5月14日
the request was rejected because no multipart boundary was found
摘要: 报错: Failed to parse multipart servlet request; nested exception is java.io.IOException: org.apache.tomcat.util.http.fileupload.FileUploadException: th
阅读全文
posted @ 2024-05-14 16:35 人间春风意
阅读(2336)
评论(0)
推荐(0)
html canvas 图片压缩后 透明背景变成黑色
摘要: 错误写法(这种写法固定死了类型,会不匹配): const data = canvas.toDataURL('image/jpeg', quality); 调整成: let fileType = xxxObj.type const data = canvas.toDataURL(fileType, q
阅读全文
posted @ 2024-05-14 08:59 人间春风意
阅读(144)
评论(0)
推荐(0)
2024年5月10日
mysql bit(1) 字段insert 报错 Data too long
摘要: insert数据时,给bit(1)字段赋值 '1' 报错 将字符串'1',修改为数字1即可
阅读全文
posted @ 2024-05-10 10:00 人间春风意
阅读(95)
评论(0)
推荐(0)
2024年5月9日
maven 打包 pom build
摘要: <dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-dependencies</artifactId> <vers
阅读全文
posted @ 2024-05-09 14:07 人间春风意
阅读(26)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
···
20
下一页
公告