GradientDrawable.GetColors Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.