Aracılığıyla paylaş


Drawable.IntrinsicHeight Property

Definition

Returns the drawable's intrinsic height.

public virtual int IntrinsicHeight { [Android.Runtime.Register("getIntrinsicHeight", "()I", "GetGetIntrinsicHeightHandler")] get; }
[<get: Android.Runtime.Register("getIntrinsicHeight", "()I", "GetGetIntrinsicHeightHandler")>]
member this.IntrinsicHeight : int

Property Value

the intrinsic height, or -1 if no intrinsic height

Attributes

Remarks

Returns the drawable's intrinsic height.

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

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

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