Sdílet prostřednictvím


Drawable.MinimumWidth Property

Definition

Returns the minimum width suggested by this Drawable.

public virtual int MinimumWidth { [Android.Runtime.Register("getMinimumWidth", "()I", "GetGetMinimumWidthHandler")] get; }
[<get: Android.Runtime.Register("getMinimumWidth", "()I", "GetGetMinimumWidthHandler")>]
member this.MinimumWidth : int

Property Value

The minimum width suggested by this Drawable. If this Drawable doesn't have a suggested minimum width, 0 is returned.

Attributes

Remarks

Returns the minimum width suggested by this Drawable. If a View uses this Drawable as a background, it is suggested that the View use at least this value for its width. (There will be some scenarios where this will not be possible.) This value should INCLUDE any padding.

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

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