ViewGroup.ChildrenDrawnWithCacheEnabled Property

Definition

Indicates whether the ViewGroup is currently drawing its children using their drawing cache. -or- Tells the ViewGroup to draw its children using their drawing cache.

protected virtual bool ChildrenDrawnWithCacheEnabled { [Android.Runtime.Register("isChildrenDrawnWithCacheEnabled", "()Z", "GetIsChildrenDrawnWithCacheEnabledHandler")] get; [Android.Runtime.Register("setChildrenDrawnWithCacheEnabled", "(Z)V", "GetSetChildrenDrawnWithCacheEnabled_ZHandler")] set; }
[<get: Android.Runtime.Register("isChildrenDrawnWithCacheEnabled", "()Z", "GetIsChildrenDrawnWithCacheEnabledHandler")>]
[<set: Android.Runtime.Register("setChildrenDrawnWithCacheEnabled", "(Z)V", "GetSetChildrenDrawnWithCacheEnabled_ZHandler")>]
member this.ChildrenDrawnWithCacheEnabled : bool with get, set

Property Value

true if children should be drawn with their cache, false otherwise

Attributes

Remarks

Property getter documentation:

Indicates whether the ViewGroup is currently drawing its children using their drawing cache.

This member is deprecated. As of android.os.Build.VERSION_CODES#M, this property is ignored. Child views may no longer be forced to cache their rendering state by their parents. Use View#setLayerType(int, Paint) on individual Views instead.

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

Property setter documentation:

Tells the ViewGroup to draw its children using their drawing cache. This property is ignored when #isAlwaysDrawnWithCacheEnabled() is true. A child's drawing cache will be used only if it has been enabled.

Subclasses should call this method to start and stop using the drawing cache when they perform performance sensitive operations, like scrolling or animating.

This member is deprecated. As of android.os.Build.VERSION_CODES#M, this property is ignored. Child views may no longer be forced to cache their rendering state by their parents. Use View#setLayerType(int, Paint) on individual Views instead.

Java documentation for android.view.ViewGroup.setChildrenDrawnWithCacheEnabled(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