语言

GradientDrawable.GetColors 方法

定义

返回用于绘制渐变的颜色,或者 null 使用单个颜色或无颜色绘制渐变。

[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[]

返回

Int32[]

用于绘制渐变的颜色,或 null

特性

注解

返回用于绘制渐变的颜色,或者 null 使用单个颜色或无颜色绘制渐变。

Java文档android.graphics.drawable.GradientDrawable.getColors()。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于