ColorDrawable.SetColorFilter(ColorFilter) Method

Definition

Sets the color filter applied to this color.

[Android.Runtime.Register("setColorFilter", "(Landroid/graphics/ColorFilter;)V", "GetSetColorFilter_Landroid_graphics_ColorFilter_Handler")]
public override void SetColorFilter (Android.Graphics.ColorFilter? colorFilter);
[<Android.Runtime.Register("setColorFilter", "(Landroid/graphics/ColorFilter;)V", "GetSetColorFilter_Landroid_graphics_ColorFilter_Handler")>]
override this.SetColorFilter : Android.Graphics.ColorFilter -> unit

Parameters

colorFilter
ColorFilter

The color filter to apply, or null to remove the existing color filter

Attributes

Remarks

Sets the color filter applied to this color.

Only supported on version android.os.Build.VERSION_CODES#LOLLIPOP and above. Calling this method has no effect on earlier versions.

Java documentation for android.graphics.drawable.ColorDrawable.setColorFilter(android.graphics.ColorFilter).

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