Condividi tramite


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);
[<Android.Runtime.Register("setId", "(II)V", "GetSetId_IIHandler")>]
abstract member SetId : int * int -> unit
override this.SetId : int * int -> unit

Parameters

index
Int32

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

id
Int32

The id to assign to the layer.

Attributes

Remarks

Sets the ID of a layer.

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