- 博客(9)
- 资源 (13)
- 收藏
- 关注
原创 android seekbar垂直滚动,滑块开始不在开端,滑块大小改变等相关问题
1、垂直的滚动条原理:只需继承AppCompatSeekBar,在onDraw将横向滚动条旋转90度,在平移回来即可,可参照下面代码。public class VerticalSeekBar extends android.support.v7.widget.AppCompatSeekBar { public VerticalSeekBar(Context context) {...
2019-05-18 16:37:05 2415
原创 解决RandomAccessFile 写文件汉字乱码问题
String content = null; RandomAccessFile file = null; try{ content = new String(protocolDataQueueElement.mData,2,length,"gb2312"); if(!mFile.exi...
2019-05-15 19:42:23 1986
原创 android shell模式下模拟触摸屏点击和按键点击
adb shell命令模式下:input keyevent 3 // Homeinput keyevent 4 // Backinput keyevent 19 //Upinput keyevent 20 //Downinput keyevent 21 //Leftinput keyevent 22 //Rightinput keyevent 23...
2019-02-21 09:57:19 3062
原创 DataSupport按条件查询
List<CollectionBean> result = DataSupport.select("type", "freq").where("type = " + radioType + " and freq = " + freq).find(CollectionBean.class);
2019-02-20 19:14:55 2634
转载 AAPT2 error: check logs for details (Gradle 3.1.2)
com.android.build.gradle.tasks.ResourceException:Error: java.util.concurrent.ExecutionException:com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logsfor details排查步骤:1、AS命令窗口...
2019-02-19 17:36:38 382
翻译 android 8.0动态申请读写权限
public void checkPermission() { boolean isGranted = true; if (android.os.Build.VERSION.SDK_INT >= 23) { if (this.checkSelfPermission(Manifest.permission.WRITE_EXTERNAL...
2019-02-18 09:48:20 6075
原创 Error:Could not find lint-gradle-api.jar (com.android.tools.lint:lint-gradle-api:26.1.2)
android studio工程编译报:Error:Could not find lint-gradle-api.jar (com.android.tools.lint:lint-gradle-api:26.1.2).Searched in the following locations: https://jcenter.bintray.com/com/android/tools/lin...
2018-11-16 17:14:25 773
原创 Emulator: qemu-system-i386.exe: Unable to open ...\misc\pstore\pstore.bin: Permission denied
Emulator: qemu-system-i386.exe: Unable to open ...\misc\pstore\pstore.bin: Permission denied解决办法:到报错的该路径下,找到pstore.bin,右击该文件-》去除只读选项-》确定。如下图所示:...
2018-10-09 17:30:22 1368
原创 java转成exe,Java程序转成exe及相应运行环境打包
上班时间简单记录,方便以后自己还需进行程序打包。Java程序转成exe及相应运行环境打包1、eclipse软件,java程序导出jar包Eclipse选择要导出的项目,右击,选择Export后如图1所示: 图1选择java->JAR file,点击ne...
2018-08-08 11:46:52 14244 1
Java高级框架应用开发案例教程——Struts 2+Spring+Hibernate.zip
2015-01-06
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人