
Android
文章平均质量分 90
Marblog
Code???
展开
-
RxJava 和Kotlin协程(Coroutines)
RxJava:适用于复杂的异步数据流处理和事件驱动的系统,提供了强大的操作符和灵活性,但代码可能较为复杂。协程:适用于需要简化异步代码、保持代码清晰和易维护的场景,尤其在 Kotlin 中,协程是非常强大的工具。根据你的具体需求和应用场景,选择适合的工具会更有效。原创 2024-08-21 14:57:00 · 778 阅读 · 0 评论 -
DevEco Studio 主题提取到IDEA
DevEco Studio这个编辑器也是基于IDEA开发的,没什么好说的,最好用的IDE,今天提取了里面的主题,可以直接放到IDEA,点我下载主题使用方法很简单,直接拖入IDEA即可!原创 2020-09-21 15:53:28 · 1425 阅读 · 0 评论 -
Android 简单数据库操作(Java部分)
Android中操作SQLite数据库,Demo已经上传,只列出了MainActivity部分,导入时注意idimport android.content.ContentValues;import android.database.Cursor;import android.database.sqlite.SQLiteDatabase;import android.support.v...原创 2018-10-17 09:34:53 · 590 阅读 · 1 评论 -
关于Android 中setTextColor报错参考
想获取随机颜色,发现报错,错误: 无法将类 Color中的构造器 Color应用到给定类型;需要: 没有参数找到: int,int,int,int原因: 实际参数列表和形式参数列表长度不同以为是参数不行,查看color类 有个构造方法,是float,然后改为float,发现还是不行,最后查看Color类 ,有一个Color.rgb方法,发现是我想要的 ...原创 2018-12-21 23:00:30 · 820 阅读 · 0 评论 -
android studio关于targetSdk version,minSdk version报错
从网上导入项目,然后Android studio报错The minSdk version should not be declared in the android manifest file. You can move the version from the manifest to the defaultConfig in the build.gradle file.The targ...原创 2018-12-12 09:01:13 · 19105 阅读 · 2 评论 -
Android studio 启动模拟器报错Emulator ERROR: x86_64 emulation currently requires hardware accelera
今天新装了个Android studio,启动AVD,发现报错了 Emulator: emulator: ERROR: x86_64 emulation currently requires hardware acceleration! Emulator: Process finished with exit code 1貌似是没有开启Intel硬件支持,应该是缺少...原创 2019-03-11 16:00:10 · 1187 阅读 · 0 评论