Android.Views.View.DrawingCacheEnabled Property

Syntax

[get: Android.Runtime.Register("isDrawingCacheEnabled", "()Z", "GetIsDrawingCacheEnabledHandler")]
[set: Android.Runtime.Register("setDrawingCacheEnabled", "(Z)V", "GetSetDrawingCacheEnabled_ZHandler")]
public virtual bool DrawingCacheEnabled { get; set; }

See Also

View.DrawingCacheEnabled
View.DrawingCache
View.DrawingCacheEnabled
View.DrawingCache
View.BuildDrawingCache
View.SetLayerType(LayerType, Android.Graphics.Paint)

Value

Documentation for this section has not yet been entered.

Remarks

Get method documentation [Android Documentation]

Indicates whether the drawing cache is enabled for this view.

Set method documentation [Android Documentation]

Enables or disables the drawing cache. When the drawing cache is enabled, the next call to View.DrawingCache or View.BuildDrawingCache will draw the view in a bitmap. Calling View.Draw(Android.Graphics.Canvas) will not draw from the cache when the cache is enabled. To benefit from the cache, you must request the drawing cache by calling View.DrawingCache and draw it on screen if the returned bitmap is not null.

Enabling the drawing cache is similar to View.SetLayerType(LayerType, Android.Graphics.Paint) when hardware acceleration is turned off. When hardware acceleration is turned on, enabling the drawing cache has no effect on rendering because the system uses a different mechanism for acceleration which ignores the flag. If you want to use a Bitmap for the view, even when hardware acceleration is enabled, see View.SetLayerType(LayerType, Android.Graphics.Paint) for information on how to enable software and hardware layers.

This API can be used to manually generate a bitmap copy of this view, by setting the flag to true and calling View.DrawingCache.

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1