Android.Views.View.BuildLayer Method
Forces this view's layer to be created and this view to be rendered into its layer.

Syntax

[Android.Runtime.Register("buildLayer", "()V", "GetBuildLayerHandler")]
public virtual void BuildLayer ()

See Also

View.SetLayerType(LayerType, Android.Graphics.Paint)

Exceptions

TypeReason
Java.Lang.IllegalStateExceptionIf this view is not attached to a window

Remarks

Forces this view's layer to be created and this view to be rendered into its layer. If this view's layer type is set to View.LAYER_TYPE_NONE, invoking this method will have no effect. This method can for instance be used to render a view into its layer before starting an animation. If this view is complex, rendering into the layer before starting the animation will avoid skipping frames.

[Android Documentation]

Requirements

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