Freigeben über


Drawable.IntrinsicWidth Property

Definition

Returns the drawable's intrinsic width.

public virtual int IntrinsicWidth { [Android.Runtime.Register("getIntrinsicWidth", "()I", "GetGetIntrinsicWidthHandler")] get; }
[<get: Android.Runtime.Register("getIntrinsicWidth", "()I", "GetGetIntrinsicWidthHandler")>]
member this.IntrinsicWidth : int

Property Value

the intrinsic width, or -1 if no intrinsic width

Attributes

Remarks

Returns the drawable's intrinsic width.

Intrinsic width is the width at which the drawable would like to be laid out, including any inherent padding. If the drawable has no intrinsic width, such as a solid color, this method returns -1.

Java documentation for android.graphics.drawable.Drawable.getIntrinsicWidth().

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