Partager via


LayerDrawable.GetId(Int32) Method

Definition

Returns the ID of the specified layer.

[Android.Runtime.Register("getId", "(I)I", "GetGetId_IHandler")]
public virtual int GetId (int index);
[<Android.Runtime.Register("getId", "(I)I", "GetGetId_IHandler")>]
abstract member GetId : int -> int
override this.GetId : int -> int

Parameters

index
Int32

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

Returns

The id of the layer or android.view.View#NO_ID if the layer has no id.

Attributes

Remarks

Returns the ID of the specified layer.

Java documentation for android.graphics.drawable.LayerDrawable.getId(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.SetId(System.Int32%2c+System.Int32)>