Android Guides | Samples

Android.Graphics.Drawables.LayerDrawable.FindDrawableByLayerId Method

Looks for a layer with the given ID and returns its Drawable.

Syntax

[Android.Runtime.Register("findDrawableByLayerId", "(I)Landroid/graphics/drawable/Drawable;", "GetFindDrawableByLayerId_IHandler")]
public virtual Drawable FindDrawableByLayerId (Int32 id)

Parameters

id
The layer ID to search for.

Remarks

Looks for a layer with the given ID and returns its Drawable.

If multiple layers are found for the given ID, returns the Drawable for the matching layer at the highest index.

[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 1