GradientDrawable.Color Property

Definition

Returns the color state list used to fill the shape, or null if the shape is filled with a gradient or has no fill color.

public virtual Android.Content.Res.ColorStateList? Color { [Android.Runtime.Register("getColor", "()Landroid/content/res/ColorStateList;", "GetGetColorHandler", ApiSince=24)] get; }
[<get: Android.Runtime.Register("getColor", "()Landroid/content/res/ColorStateList;", "GetGetColorHandler", ApiSince=24)>]
member this.Color : Android.Content.Res.ColorStateList

Property Value

the color state list used to fill this gradient, or null

Attributes

Remarks

Returns the color state list used to fill the shape, or null if the shape is filled with a gradient or has no fill color.

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

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