Compartir a través de


LayerDrawable.GetLayerWidth(Int32) Method

Definition

[Android.Runtime.Register("getLayerWidth", "(I)I", "GetGetLayerWidth_IHandler", ApiSince=23)]
public virtual int GetLayerWidth (int index);
[<Android.Runtime.Register("getLayerWidth", "(I)I", "GetGetLayerWidth_IHandler", ApiSince=23)>]
abstract member GetLayerWidth : int -> int
override this.GetLayerWidth : int -> int

Parameters

index
Int32

the index of the drawable to adjust

Returns

the explicit width of the layer, or -1 if not specified

Attributes

Remarks

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