- 博客(2)
- 资源 (13)
- 收藏
- 关注
原创 Android 实现一个字符串设置多种颜色
实现效果: 共10件方法1:使用html在xml文件中使用html写法如下:原始<string name="text">共 %1$d件</string>使用html写法:<string name="text"> <![CDATA[ 共 <font color="#FF0000">%1$d件</font>]]> </string>把整个字符串放在[CDATA]标签中变色的内容放到.
2020-10-27 19:31:26
1987
原创 使用OkHttp3在安卓P网络请求中CLEARTEXT communication to xxx.xxx.com not permitted by network security policy问题
OKhttp3在Android P(9.0) level 28 及以上版本http请求过程中会出现异常:CLEARTEXTcommunication to xxx.xxx.com not permitted by networksecurity policy这个问题是由于Android P(9.0)开始,限制了明文的网络请求,非加密请求会被系统禁止掉,WebView加载http协议的页面也会出现加载失败,使用https不受影响。2种解决方式:方法1.在AndroidManifest...
2020-06-18 17:31:26
686
精通Android 4-中文版-带书签 .part2
2016-12-22
android 4.4.2 api 源码
2015-03-05
(重构改善既有代码的设计)RefactoringImprovingtheDesignofExistingCode
2015-03-05
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人