Udostępnij za pośrednictwem


ViewGroup.LayoutParams.WrapContent Field

Definition

Special value for the height or width requested by a View.

[Android.Runtime.Register("WRAP_CONTENT")]
public const int WrapContent = -2;
[<Android.Runtime.Register("WRAP_CONTENT")>]
val mutable WrapContent : int

Field Value

Value = -2
Attributes

Remarks

Special value for the height or width requested by a View. WRAP_CONTENT means that the view wants to be just large enough to fit its own internal content, taking its own padding into account.

Java documentation for android.view.ViewGroup.LayoutParams.WRAP_CONTENT.

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