ColorDrawable.Color Property

Definition

Gets the drawable's color value. -or- Sets the drawable's color value.

public virtual Android.Graphics.Color Color { [Android.Runtime.Register("getColor", "()I", "GetGetColorHandler")] get; [Android.Runtime.Register("setColor", "(I)V", "GetSetColor_IHandler")] set; }
[<get: Android.Runtime.Register("getColor", "()I", "GetGetColorHandler")>]
[<set: Android.Runtime.Register("setColor", "(I)V", "GetSetColor_IHandler")>]
member this.Color : Android.Graphics.Color with get, set

Property Value

int The color to draw.

Attributes

Remarks

Property getter documentation:

Gets the drawable's color value.

Java documentation for android.graphics.drawable.ColorDrawable.getColor().

Property setter documentation:

Sets the drawable's color value. This action will clobber the results of prior calls to #setAlpha(int) on this object, which side-affected the underlying color.

Java documentation for android.graphics.drawable.ColorDrawable.setColor(int).

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