Share via


Drawable.GetOutline(Outline) Method

Definition

Called to get the drawable to populate the Outline that defines its drawing area.

[Android.Runtime.Register("getOutline", "(Landroid/graphics/Outline;)V", "GetGetOutline_Landroid_graphics_Outline_Handler")]
public virtual void GetOutline (Android.Graphics.Outline outline);
[<Android.Runtime.Register("getOutline", "(Landroid/graphics/Outline;)V", "GetGetOutline_Landroid_graphics_Outline_Handler")>]
abstract member GetOutline : Android.Graphics.Outline -> unit
override this.GetOutline : Android.Graphics.Outline -> unit

Parameters

outline
Outline
Attributes

Remarks

Called to get the drawable to populate the Outline that defines its drawing area.

This method is called by the default android.view.ViewOutlineProvider to define the outline of the View.

The default behavior defines the outline to be the bounding rectangle of 0 alpha. Subclasses that wish to convey a different shape or alpha value must override this method.

Java documentation for android.graphics.drawable.Drawable.getOutline(android.graphics.Outline).

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