Introduction to several default property values for Android Android:persistentdrawingcache

Source: Internet
Author: User

Android:persistentdrawingcache (official Google translation)

Defines the persistence of the drawing cache. The drawing cache might is enabled by a viewgroup for all it children in specific situations (for instance during a Scrol Ling.) The lets persist the cache in memory with its initial usage. Persisting the cache consumes more memory but may prevent frequent garbage collection are the cache is created over and Ove R again. By default, the persistence is set to scrolling.

Defines the persistence of the drawing's cache. The drawing cache may be enabled by a viewgroup for all its subclasses, for example, during a scrolling process. This property can be persisted in its in-memory cache after initial use. Persisting the cache consumes more memory, but may prevent frequent garbage collection from repeatedly creating the cache. By default, the persistence is set to scroll.

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

The values that can be used in the XML file are:

constant value description
none 0x0 The drawing cache is not a 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.

Introduction to several default property values for Android Android:persistentdrawingcache

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.