英文:

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在特定情况下为其所有的子类启用,例如在一个滚动的过程中。 此属性可以保留在内存中的缓存后其初始的使用。 坚持缓存会消耗更多的内存,但可能会阻止频繁的垃圾回收是反复创建缓存。 默认情况下持续存在设置为滚动。

其属性值只有以下几种:

ConstantValueDescription
none0x0The drawing cache is not persisted after use.
animation0x1The drawing cache is persisted after a layout animation.
scrolling0x2The drawing cache is persisted after a scroll.
all0x3The drawing cache is always persisted.

更多相关文章

  1. Android SharedPreferences本地缓存
  2. Android 图片加载缓存
  3. Android 中 EditText 的 inputType 属性及其他常用属性详解
  4. Android studio gradle 生成字段属性值
  5. 在AndroidManifest.xml文件中的android:windowSoftInputMode属性
  6. Gradle离线配置、.android、.AndroidStudio、.gradle、.m2缓存文
  7. Android 获取AndroidManifest.xml文件versionCode,versionName属
  8. Android为每个应用程序分配的内存大小是多
  9. ImageView的属性android:scaleType,即ImageView.setSca...

随机推荐

  1. Android.PublishApplication
  2. Android(安卓)存储目录
  3. Android(安卓)ViewPager实现Tabhost选项
  4. Android(安卓)应用程序获得版本号
  5. ProGuard代码混淆详细攻略
  6. 三十五、android adb命令详解
  7. Android通过Http连接MySQL 实现登陆/注册
  8. Android缩放drawable
  9. 如何使Android应用程序获取系统权限【转
  10. 为什么你的canvas那么慢?浅析Android的can