View.SetLayerType(LayerType, Paint) View.SetLayerType(LayerType, Paint) Method

Definition

[Android.Runtime.Register("setLayerType", "(ILandroid/graphics/Paint;)V", "GetSetLayerType_ILandroid_graphics_Paint_Handler", ApiSince=11)]
public virtual void SetLayerType (Android.Views.LayerType layerType, Android.Graphics.Paint paint);
abstract member SetLayerType : Android.Views.LayerType * Android.Graphics.Paint -> unit
override this.SetLayerType : Android.Views.LayerType * Android.Graphics.Paint -> unit

Parameters

layerType
LayerType LayerType

The type of layer to use with this view, must be one of None, Android.Views.View.LAYER_TYPE_SOFTWARE or Android.Views.View.LAYER_TYPE_HARDWARE

paint
Paint Paint

The paint used to compose the layer. This argument is optional and can be null. It is ignored when the layer type is None

Remarks

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