Android.Views.View.SetLayerPaint Method
Updates the Android.Graphics.Paint object used with the current layer (used only if the current layer type is not set to View.LAYER_TYPE_NONE).

Syntax

[Android.Runtime.Register("setLayerPaint", "(Landroid/graphics/Paint;)V", "GetSetLayerPaint_Landroid_graphics_Paint_Handler")]
public virtual void SetLayerPaint (Android.Graphics.Paint paint)

See Also

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

Parameters

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

Remarks

Updates the Android.Graphics.Paint object used with the current layer (used only if the current layer type is not set to View.LAYER_TYPE_NONE). Changed properties of the Paint provided to View.SetLayerType(LayerType, Android.Graphics.Paint) will be used the next time the View is redrawn, but View.SetLayerPaint(Android.Graphics.Paint) must be called to ensure that the view gets redrawn immediately.

A layer is associated with an optional Android.Graphics.Paint instance that controls how the layer is composed on screen. The following properties of the paint are taken into account when composing the layer:

If this view has an alpha value set to View.Alpha, the alpha value of the layer's paint is superceded by this view's alpha value.

[Android Documentation]

Requirements

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