Fork me on GitHub
摘要: 误点1 Application在Dalvik中只存在一个,所以不用再去傻乎乎的写单列去获取对象了.如果一个App中存在多进程(注意进程和线程的区别)的话,那么会存在多个Dalvik. 误点2 Application 有两个子类,一个是MultiDexApplication(对于APP出现65536的 阅读全文
posted @ 2021-06-15 14:23 KevinAt2022 阅读(99) 评论(0) 推荐(0)
摘要: Android View 颜色 ARGB888 A 透明度 0(0x00)透明 255(0xff)不透明 R 红色 0(0x00)无色 255(0xff)红色 G 绿色 0(0x00)无色 255(0xff)绿色 B 蓝色 0(0x00)无色 255(0xff)蓝色 流程 构造函数 测量大小(onM 阅读全文
posted @ 2021-06-15 14:18 KevinAt2022 阅读(103) 评论(0) 推荐(0)
摘要: ClipboardManager 系统全局剪贴板对象 //获取ClipboardManager对象 ClipManager clipManager = (ClipManager) context.getSystemService(Context.CLIPBOARD_SERVICE); ClipDat 阅读全文
posted @ 2021-06-15 14:16 KevinAt2022 阅读(158) 评论(0) 推荐(0)
摘要: 添加TextView连接 TextView tv = findViewById(id); String text = "Visit <a href="http://www.xxx.com>hello page</a>">"; tv.setText(Html.fromHtml(text)); tc.s 阅读全文
posted @ 2021-06-15 14:14 KevinAt2022 阅读(65) 评论(0) 推荐(0)
摘要: AS *.iml .gradle/* /build/* /captures/* .idea/* .project .settings/ .classpath local.properties .DS_Store .externalNativeBuild app/build app/bugly/* * 阅读全文
posted @ 2021-06-15 14:10 KevinAt2022 阅读(68) 评论(0) 推荐(0)
摘要: 震动 权限 <uses-permission android:name="android.permission.VIBRATE" /> 初始化 Vibrator vibrator = (Vibrator) this.getSystemService(Context.VIBRATOR_SERVICE) 阅读全文
posted @ 2021-06-15 14:02 KevinAt2022 阅读(88) 评论(0) 推荐(0)
摘要: EditText详解 默认文字 布局中 android:hint="默认显示的字符串" 代码中 // 定义hint的值 SpannableString hintStr = new SpannableString(g"")); // 设置字体大小 true表示单位是SP AbsoluteSizeSpa 阅读全文
posted @ 2021-06-15 14:01 KevinAt2022 阅读(199) 评论(0) 推荐(0)
摘要: 算法分类 对称加密:加密和解密用一个秘钥的方式称为共享秘钥加密,也叫对称秘钥加密。如DES、3DES、AES 非对称加密:加密和解密使用的是一对非对称的秘钥,加密使用公钥进行加密处理,接收方使用秘钥进行解密。如RSA、DSA、ECC 消息摘要:MD5 数字签名: 对称加密算法(加解密密钥相同) | 阅读全文
posted @ 2021-06-15 13:49 KevinAt2022 阅读(820) 评论(0) 推荐(0)