다음을 통해 공유


GradientDrawable.SetGradientRadius(Single) Method

Definition

Sets the radius of the gradient.

[Android.Runtime.Register("setGradientRadius", "(F)V", "GetSetGradientRadius_FHandler")]
public virtual void SetGradientRadius (float gradientRadius);
[<Android.Runtime.Register("setGradientRadius", "(F)V", "GetSetGradientRadius_FHandler")>]
abstract member SetGradientRadius : single -> unit
override this.SetGradientRadius : single -> unit

Parameters

gradientRadius
Single

the radius of the gradient in pixels

Attributes

Remarks

Sets the radius of the gradient. The radius is honored only when the gradient type is set to #RADIAL_GRADIENT.

<strong>Note</strong>: changing this property will affect all instances of a drawable loaded from a resource. It is recommended to invoke #mutate() before changing this property.

Java documentation for android.graphics.drawable.GradientDrawable.setGradientRadius(float).

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

See also