zoukankan      html  css  js  c++  java
  • Android android:persistentDrawingCache的几个默认属性值介绍

    android:persistentDrawingCache (Google官方译文) 

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

    Must be one or more (separated by '|') of the following constant values.

    Xml文件中可以使用一下的值:

    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.
  • 相关阅读:
    vue2.0是不支持通过下标来更改数组的,无法做到响应式
    C# 深拷贝 Bitmap对象示例
    vscode终端中文乱码
    TkbmMemTable使用总结
    openssl 证书概念介绍
    openssl源码介绍
    python变量赋值特性
    openssl安装
    github开源协议选择
    NLP 多分类神经网络
  • 原文地址:https://www.cnblogs.com/lechance/p/4373190.html
Copyright © 2011-2022 走看看