Udostępnij za pośrednictwem


GradientDrawable.GetColors Method

Definition

Returns the colors used to draw the gradient, or null if the gradient is drawn using a single color or no colors.

[Android.Runtime.Register("getColors", "()[I", "GetGetColorsHandler", ApiSince=24)]
public virtual int[]? GetColors ();
[<Android.Runtime.Register("getColors", "()[I", "GetGetColorsHandler", ApiSince=24)>]
abstract member GetColors : unit -> int[]
override this.GetColors : unit -> int[]

Returns

Int32[]

the colors used to draw the gradient, or null

Attributes

Remarks

Returns the colors used to draw the gradient, or null if the gradient is drawn using a single color or no colors.

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

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