Udostępnij za pośrednictwem


GradientDrawable.GradientType Property

Definition

Returns the type of gradient used by this drawable, one of #LINEAR_GRADIENT, #RADIAL_GRADIENT, or #SWEEP_GRADIENT.

public virtual Android.Graphics.Drawables.GradientType GradientType { [Android.Runtime.Register("getGradientType", "()I", "GetGetGradientTypeHandler", ApiSince=24)] get; }
[<get: Android.Runtime.Register("getGradientType", "()I", "GetGetGradientTypeHandler", ApiSince=24)>]
member this.GradientType : Android.Graphics.Drawables.GradientType

Property Value

the type of gradient used by this drawable

Attributes

Remarks

Returns the type of gradient used by this drawable, one of #LINEAR_GRADIENT, #RADIAL_GRADIENT, or #SWEEP_GRADIENT.

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

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