- 博客(3)
- 资源 (5)
- 收藏
- 关注
转载 android 网络加载图片,对图片资源进行优化,并且实现内存双缓存 + 磁盘缓存
经常会用到 网络文件 比如查看大图片数据 资源优化的问题,当然用开源的项目 Android-Universal-Image-Loader 或者 ignition 都是个很好的选择。 在这里把原来 写过的优化的代码直接拿出来,经过测试千张图片效果还是不错的。 工程目录: 至于 Activity 就是加载了 1个
2016-07-18 10:58:10 564
转载 Glide 使用 +圆形图+圆角图
Glide3.0新增 1.GIF Animated GIF decoding - Just use the same Glide.with(...).load(...) call and if the image you load is an animated GIF, Glide will load and display a custom animated drawable con
2016-07-12 23:41:21 2106
转载 从tcp原理角度理解Broken pipe和Connection reset by peer的区别
原文 http://lovestblog.cn/2014/01/10/tcp_ip/tcp_broken_pipe 以前我们经常会碰到Broken pipe或者Connection reset by peer之类的异常,但是tcp实现里什么情况下会抛出这些异常呢? 在讲具体的原因之前,我们有必要补充下tcp这块的一些基础知识,我们都知道tc
2016-07-04 15:28:59 350
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人