Läs på engelska

Dela via


View.BuildLayer Method

Definition

Forces this view's layer to be created and this view to be rendered into its layer.

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

Exceptions

If 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 #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.

Java documentation for android.view.View.buildLayer().

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

Produkt Versioner
.NET for Android .NET for Android API 34, .NET for Android API 35

See also

  • <xref:Android.Views.View.SetLayerType(Android.Views.LayerType%2c+Android.Graphics.Paint)>