View.BuildLayer Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Forces this view's layer to be created and this view to be rendered into its layer.
[Android.Runtime.Register("buildLayer", "()V", "GetBuildLayerHandler")]
public virtual void BuildLayer ();
[<Android.Runtime.Register("buildLayer", "()V", "GetBuildLayerHandler")>]
abstract member BuildLayer : unit -> unit
override this.BuildLayer : unit -> unit
- 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
See also
- <xref:Android.Views.View.SetLayerType(Android.Views.LayerType%2c+Android.Graphics.Paint)>