android:persistentDrawingCache含义
来源:互联网 发布:南平seo自动优化软件 编辑:程序博客网 时间:2024/06/05 23:07
网上很多人在寻找这个答案,下面将API中的解释进行翻译:
Defines the persistence of the drawing cache. The drawing cache might be enabled by a ViewGroup for all its children in specific situations (for instance during a scrolling.) This property lets you persist the cache in memory after its initial usage. Persisting the cache consumes more memory but may prevent frequent garbage collection is the cache is created over and over again. By default the persistence is set to scrolling.
大致意思如下:
定义绘图的高速缓存的持久性。 绘图缓存可能由一个 ViewGroup 在特定情况下为其所有的子类启用,例如在一个滚动的过程中。 此属性可以保留在内存中的缓存后其初始的使用。 坚持缓存会消耗更多的内存,但可能会阻止频繁的垃圾回收是反复创建缓存。 默认情况下持续存在设置为滚动。
其属性值只有以下几种:
Constant Value Description
none 0x0 The drawing cache is not persisted after use.
animation 0x1 The drawing cache is persisted after a layout animation.
scrolling 0x2 The drawing cache is persisted after a scroll.
all 0x3 The drawing cache is always persisted.
原文:http://www.hqew.com/tech/sheji/1621144.html
- android:persistentDrawingCache 的含义
- android:persistentDrawingCache含义
- android:persistentDrawingCache含义
- Android Android:persistentDrawingCache
- android:persistentDrawingCache="animation"
- android:persistentDrawingCache="animation"
- Android:persistentDrawingCache解释
- android:persistentDrawingCache用法说明
- persistentDrawingCache
- Android-android:persistentDrawingCache图片缓存
- Android persistentDrawingCache 绘图缓存 使用
- Android android:persistentDrawingCache的几个默认属性值介绍
- ViewPager中属性android:flipInterval="30" android:persistentDrawingCache="animation"
- ViewPage的缓存策略persistentDrawingCache
- ViewPage的缓存策略persistentDrawingCache
- android:drawSelectorOnTop含义
- android:drawSelectorOnTop含义
- Android drawable文件夹含义
- Android ANR-ContentProvider
- p3116 高精度练习之加法
- 线程属性设置
- VS2008+Qt4.7.3+VTK5.10.1+PCL1.5.1
- 修改myeclipse的jsp模板
- android:persistentDrawingCache含义
- distribute_crawler项目实战
- jQuery 效果 - slideToggle() 方法
- 上机编程题-约瑟夫问题(升级版)
- p1016 深搜
- 前端的Project示例
- Install Scala and SBT using apt-get on Ubuntu 14.04 or any Debian derivative using apt-get
- Java成员变量的访问权限
- Alipay秘钥校验工具