Android Guides | Samples

Android.Graphics.Drawables.LayerDrawable.SetId Method

Sets the ID of a layer.

Syntax

[Android.Runtime.Register("setId", "(II)V", "GetSetId_IIHandler")]
public virtual Void SetId (Int32 index, Int32 id)

See Also

Parameters

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

Remarks

Sets the ID of a layer.

[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