Share via


LayerDrawable.GetDrawable(Int32) Method

Definition

Returns the drawable for the layer at the specified index.

[Android.Runtime.Register("getDrawable", "(I)Landroid/graphics/drawable/Drawable;", "GetGetDrawable_IHandler")]
public virtual Android.Graphics.Drawables.Drawable? GetDrawable (int index);
[<Android.Runtime.Register("getDrawable", "(I)Landroid/graphics/drawable/Drawable;", "GetGetDrawable_IHandler")>]
abstract member GetDrawable : int -> Android.Graphics.Drawables.Drawable
override this.GetDrawable : int -> Android.Graphics.Drawables.Drawable

Parameters

index
Int32

The index of the layer, must be in the range 0...getNumberOfLayers()-1.

Returns

The Drawable at the specified layer index.

Attributes

Remarks

Returns the drawable for the layer at the specified index.

Java documentation for android.graphics.drawable.LayerDrawable.getDrawable(int).

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

  • <xref:Android.Graphics.Drawables.LayerDrawable.SetDrawable(System.Int32%2c+Android.Graphics.Drawables.Drawable)>