ViewGroup.AlwaysDrawnWithCacheEnabled Property

Definition

Indicates whether this ViewGroup will always try to draw its children using their drawing cache. -or- Indicates whether this ViewGroup will always try to draw its children using their drawing cache.

public virtual bool AlwaysDrawnWithCacheEnabled { [Android.Runtime.Register("isAlwaysDrawnWithCacheEnabled", "()Z", "GetIsAlwaysDrawnWithCacheEnabledHandler")] get; [Android.Runtime.Register("setAlwaysDrawnWithCacheEnabled", "(Z)V", "GetSetAlwaysDrawnWithCacheEnabled_ZHandler")] set; }
[<get: Android.Runtime.Register("isAlwaysDrawnWithCacheEnabled", "()Z", "GetIsAlwaysDrawnWithCacheEnabledHandler")>]
[<set: Android.Runtime.Register("setAlwaysDrawnWithCacheEnabled", "(Z)V", "GetSetAlwaysDrawnWithCacheEnabled_ZHandler")>]
member this.AlwaysDrawnWithCacheEnabled : bool with get, set

Property Value

true if the animation cache is enabled, false otherwise

Attributes

Remarks

Property getter documentation:

Indicates whether this ViewGroup will always try to draw its children using their drawing cache. By default this property is enabled.

This member is deprecated. As of android.os.Build.VERSION_CODES#M, this property is ignored. Child views may no longer have their caching behavior disabled by parents.

Java documentation for android.view.ViewGroup.isAlwaysDrawnWithCacheEnabled().

Property setter documentation:

Indicates whether this ViewGroup will always try to draw its children using their drawing cache. This property can be set to true when the cache rendering is slightly different from the children's normal rendering. Renderings can be different, for instance, when the cache's quality is set to low.

When this property is disabled, the ViewGroup will use the drawing cache of its children only when asked to. It's usually the task of subclasses to tell ViewGroup when to start using the drawing cache and when to stop using it.

This member is deprecated. As of android.os.Build.VERSION_CODES#M, this property is ignored. Child views may no longer have their caching behavior disabled by parents.

Java documentation for android.view.ViewGroup.setAlwaysDrawnWithCacheEnabled(boolean).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also