Udostępnij za pośrednictwem


View.SuggestedMinimumWidth Property

Definition

Returns the suggested minimum width that the view should use.

protected virtual int SuggestedMinimumWidth { [Android.Runtime.Register("getSuggestedMinimumWidth", "()I", "GetGetSuggestedMinimumWidthHandler")] get; }
[<get: Android.Runtime.Register("getSuggestedMinimumWidth", "()I", "GetGetSuggestedMinimumWidthHandler")>]
member this.SuggestedMinimumWidth : int

Property Value

The suggested minimum width of the view.

Attributes

Remarks

Returns the suggested minimum width that the view should use. This returns the maximum of the view's minimum width and the background's minimum width (android.graphics.drawable.Drawable#getMinimumWidth()).

When being used in #onMeasure(int, int), the caller should still ensure the returned width is within the requirements of the parent.

Java documentation for android.view.View.getSuggestedMinimumWidth().

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