- 博客(2)
- 资源 (2)
- 收藏
- 关注
原创 android LruCache 原理 以及 源代码解析
使用LRU(Least recently used,最近最少使用)算法缓存技术能大大提升程序性能。 原理: 1. 新数据插入到链表头部; 2. 每当缓存命中(即缓存数据被访问),则将数据移到链表头部; 3. 当缓存内容超过指定大小的时候,将链表尾部的数据丢弃。 了解原理后,我们看下android中LruCache 的源代码实现。 public LruCa
2015-12-08 16:47:08 456
原创 自定义Android progress bars
首先 各版本默认的进度条样式 现在我们开始自定义样式 ProgressBar android:id="@+id/progressBar2" style="?android:attr/progressBarStyleHorizontal" android:layout_width="fill_parent" android:l
2015-12-07 15:38:04 402
android bsdiff 增量升级更新 热补丁 hotpatch
2015-08-03
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人