LayerDrawable.SetId(Int32, Int32) LayerDrawable.SetId(Int32, Int32) Method

Definition

Sets the ID of a layer.

[Android.Runtime.Register("setId", "(II)V", "GetSetId_IIHandler")]
public virtual void SetId (int index, int id);
abstract member SetId : int * int -> unit
override this.SetId : int * int -> unit

Parameters

index
Int32 Int32

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

id
Int32 Int32

The id to assign to the layer.

Remarks

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