Android.Graphics.Drawables.GradientDrawable.SetOrientation Method

Syntax

[Android.Runtime.Register("setOrientation", "(Landroid/graphics/drawable/GradientDrawable$Orientation;)V", "GetSetOrientation_Landroid_graphics_drawable_GradientDrawable_Orientation_Handler")]
public virtual void SetOrientation (GradientDrawable.Orientation orientation)

Parameters

orientation
The desired orientation (angle) of the gradient

Remarks

Changes the orientation of the gradient defined in this drawable.

Note: changing orientation will affect all instances of a drawable loaded from a resource. It is recommended to invoke GradientDrawable.mutate() before changing the orientation.

[Android Documentation]

Requirements

Namespace: Android.Graphics.Drawables
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 16