Share via


LayerDrawable.FindIndexByLayerId(Int32) Method

Definition

Returns the layer with the specified id.

[Android.Runtime.Register("findIndexByLayerId", "(I)I", "GetFindIndexByLayerId_IHandler", ApiSince=23)]
public virtual int FindIndexByLayerId (int id);
[<Android.Runtime.Register("findIndexByLayerId", "(I)I", "GetFindIndexByLayerId_IHandler", ApiSince=23)>]
abstract member FindIndexByLayerId : int -> int
override this.FindIndexByLayerId : int -> int

Parameters

id
Int32

The ID of the layer to return.

Returns

The index of the layer with the specified ID.

Attributes

Remarks

Returns the layer with the specified id.

If multiple layers have the same ID, returns the layer with the lowest index.

Java documentation for android.graphics.drawable.LayerDrawable.findIndexByLayerId(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