Condividi tramite


LayerDrawable.SetLayerWidth(Int32, Int32) Method

Definition

[Android.Runtime.Register("setLayerWidth", "(II)V", "GetSetLayerWidth_IIHandler", ApiSince=23)]
public virtual void SetLayerWidth (int index, int w);
[<Android.Runtime.Register("setLayerWidth", "(II)V", "GetSetLayerWidth_IIHandler", ApiSince=23)>]
abstract member SetLayerWidth : int * int -> unit
override this.SetLayerWidth : int * int -> unit

Parameters

index
Int32

the index of the layer to adjust

w
Int32

width in pixels, or -1 to use the intrinsic width

Attributes

Remarks

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